vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vRewrite - SEOed URLs for vBulletin (https://vborg.vbsupport.ru/forumdisplay.php?f=182)
-   -   Try this version if you are having problems. (https://vborg.vbsupport.ru/showthread.php?t=118177)

jlaine 06-10-2006 01:00 AM

Try this version if you are having problems.
 
1 Attachment(s)
This is the most up to date 1.5.1 that I'm aware of - a lot of the bugs being reported here with people that say they have 1.5.1 are fixed in this one - they were done on the fly and hopefully this will repair a lot of the issues people are having.

This should hopefully give Immortal and Bhuwan some time to focus on the current issues and not backtrack through all the existing ones when some have been patched already.

Use the existing installation instructions to install - they are available from the other download.

Verify you have your .htaccess looking like this:
(NOTE!!! - I'm not using .html as an extension - if you are, use the .htaccess set beneath this one!)

Code:

RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new$ showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last$ showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post([0-9]+)$ showthread.php?p=$4&%{QUERY_STRING} [L]         
RewriteRule ^p-([A-Za-z0-9\-]+)-post([0-9]+)/postcount([0-9]+)$ showpost.php?p=$2&postcount=$3&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)$ showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)$ showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^u-([A-Za-z0-9\-]+)-([0-9]+)$ member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L]         
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^search-([A-Za-z0-9\-]+)/$ search.php?do=$1 [L]         
RewriteCond %{REQUEST_FILENAME} !-f         
RewriteCond %{REQUEST_FILENAME} !-d         
RewriteRule ^(.*)/(.*)(\.php)$ $2.php?&%{QUERY_STRING} [L]

Use if you are using .html as an extension:

Code:

RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html$ showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html$ showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post([0-9]+).html$ showthread.php?p=$4&%{QUERY_STRING} [L]         
RewriteRule ^p-([A-Za-z0-9\-]+)-post([0-9]+)/postcount([0-9]+).html$ showpost.php?p=$2&postcount=$3&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html$ showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html$ showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^u-([A-Za-z0-9\-]+)-([0-9]+).html$ member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L]         
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]         
RewriteCond %{REQUEST_FILENAME} !-f         
RewriteCond %{REQUEST_FILENAME} !-d         
RewriteRule ^(.*)/(.*)(\.php)$ $2.php?&%{QUERY_STRING} [L]

Things that ARE wrong with this version:
Member links under thread titles on forumdisplay.php are not working properly (has / at the end of the URL, not supposed to rewrite with that, can modify .htaccess to accomodate, but assuming the code will be updated instead.)
Redirect from logging in by hitting new thread/new reply will result in an invalid URL, data isn't passed through correctly.

That's what I can recall off the top of my head right now... Hopefully this will all get ironed out soon.

Immortal 06-10-2006 02:03 AM

Sounds like a sticky to me :)

cyberoptik 06-10-2006 05:59 PM

This fixed a problem that I was having with the "New Posts" link. I was just about to post about it. Thanks!

jdingman 06-11-2006 01:34 AM

I'm still getting 'search links' displaying like this..

Quote:

//search-getnew.html/
I just installed this latest version. Any ideas how to fix these?

jlaine 06-11-2006 02:01 AM

I'd check your template - I can't reproduce it on my site with either skin I have, and I don't have a test board running to really dig much further.

Mine looks like this, I can't assume yours does - but here is the snippet I have for those particular boxes:

Code:

<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td></tr>       
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td></tr>

Possibly $bburl having a trailing slash? I don't know how your templates are coded...

jdingman 06-11-2006 05:39 PM

Quote:

Originally Posted by jlaine
I'd check your template - I can't reproduce it on my site with either skin I have, and I don't have a test board running to really dig much further.

Mine looks like this, I can't assume yours does - but here is the snippet I have for those particular boxes:

Code:

<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td></tr>       
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td></tr>

Possibly $bburl having a trailing slash? I don't know how your templates are coded...

Yeah, that seemed to have fixed it. There was an extra / in there. thanks!

dprotas 07-07-2006 07:21 AM

Using this htaccess I have run into trouble accessing modcp/admincp. I solved it adding this rule:

Code:

  RewriteRule ^(admincp|modcp|archive)/(.*)(\.php)$ $1/$2.php?&%{QUERY_STRING} [L]
I post it here because it might be useful for someone having the same problem.

wtleaver 07-09-2006 08:05 PM

I have this mod mostly working with the files from this thread.

However, Quick Links -> Mark Forums Read, which links to forumdisplay.php?do=markread, is producing a "200 OK" message with "The document has moved here." on the page, where "here" links to the main forum URL.

Oddly though, this happens whether vrewrite is turn on or off in settings, and even without the .htaccess present, so maybe it's unrelated. (Bear in mind I've only purchased and installed vbulleting today).

Immortal 07-09-2006 09:06 PM

I believe it's been reported as a bug a few times :)

Guest210212002 07-16-2006 01:30 PM

Quote:

Originally Posted by jdingman
I'm still getting 'search links' displaying like this..

I just installed this latest version. Any ideas how to fix these?

I just edited my navbar template to flatly point at search-getnew.html and it seemed to solve it. Initially the url was fine in the fourms, but broken on vBAdvanced.

I still have the WOL problem, however.


All times are GMT. The time now is 04:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02169 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete