You have different URL format comparing to mentioned above.
Please try this rewrite rule in .htaccess (right after RewreiteEngine on):
Code:RewriteRule ^showthread\.php/[^/]+-([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L]
This is a discussion on Hi, Can VBSEO Recdirect Zoints SEO URLS?? within the Pre-Sales Questions forums, part of the Announcements & Pre-Sales category; You have different URL format comparing to mentioned above. Please try this rewrite rule in .htaccess (right after RewreiteEngine on): ...
You have different URL format comparing to mentioned above.
Please try this rewrite rule in .htaccess (right after RewreiteEngine on):
Code:RewriteRule ^showthread\.php/[^/]+-([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L]
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Thankyou so much that worked perfect , I started to worry as I was getting loads of 404's and could not fix it
Great, you are welcome!![]()
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I'm getting 500 Internal server error
This is what is in htaccess file.
Code:# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{QUERY_STRING} !vbseourl= RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron) RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$ RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA] RewriteRule ^[^/]*-f([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$2 [L] RewriteRule ^[^/]*-t([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$2 [L]The above looks like causing the Internal server error.Code:RewriteRule ^[^/]*-f([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$2 [L] RewriteRule ^[^/]*-t([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$2 [L]
This might help you understand the error bit more.Code:[Wed Dec 5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n [Wed Dec 5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n [Wed Dec 5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n [Wed Dec 5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n [Wed Dec 5 01:27:41 2007] [alert] [client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n [Wed Dec 5 01:27:41 2007] [alert] [client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n
Try to change rewrite rule to:
Also, you should insert them right after "RewriteEngine on" line, NOT at the bottom.Code:RewriteRule ^[^/]*-f([0-9]+)\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1 [L] RewriteRule ^[^/]*-t([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L]
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Yeh this one seems to be working, fine thanks. Will report back if there are any errors or not Thanks.
Oleg : FYI, that code
RewriteRule ^[^/]*-f([0-9]+)\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1 [L]
RewriteRule ^[^/]*-t([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L]
Worked on my setup.