nocte
05-18-2011, 03:05 AM
Hello,
I have just installed vbseo. Now i noticed the the old vB mod_rewrite URLs (e.g. www.forum.tld/forum/forums/1-Forumname ) don't work anymore. Here's my htaccess:
RewriteEngine On
Options +FollowSymLinks
RewriteBase /forum/
## Old URLs ##
RewriteCond %{QUERY_STRING} do=cfrules [NC]
RewriteRule ^misc\.php$ http://www.forum.tld/forum/misc.php?do=showrules [R=301,L]
#RewriteRule ^([0-9a-z-]*)-f([0-9]+)\.html forumdisplay.php?f=$2
#RewriteRule ^([0-9a-z-]*)-f([0-9]+)p([0-9]+)\.html forumdisplay.php?f=$2&page=$3
#RewriteRule ^([0-9a-z-]*)-t([0-9]+).html showthread.php?t=$2
#RewriteRule ^([0-9a-z-]*)-t([0-9]+)p([0-9]+).html showthread.php?t=$2&page=$3
## old vB rewrite ##
RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
#RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
#RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
#RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
#RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
#RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
## VBSEO ##
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
(sorry for crossposting here and on vbseo.com, but it's quite urgent, because i have to keep my live forum colsed..).
Kind regards,
nocte
I have just installed vbseo. Now i noticed the the old vB mod_rewrite URLs (e.g. www.forum.tld/forum/forums/1-Forumname ) don't work anymore. Here's my htaccess:
RewriteEngine On
Options +FollowSymLinks
RewriteBase /forum/
## Old URLs ##
RewriteCond %{QUERY_STRING} do=cfrules [NC]
RewriteRule ^misc\.php$ http://www.forum.tld/forum/misc.php?do=showrules [R=301,L]
#RewriteRule ^([0-9a-z-]*)-f([0-9]+)\.html forumdisplay.php?f=$2
#RewriteRule ^([0-9a-z-]*)-f([0-9]+)p([0-9]+)\.html forumdisplay.php?f=$2&page=$3
#RewriteRule ^([0-9a-z-]*)-t([0-9]+).html showthread.php?t=$2
#RewriteRule ^([0-9a-z-]*)-t([0-9]+)p([0-9]+).html showthread.php?t=$2&page=$3
## old vB rewrite ##
RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
#RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
#RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
#RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
#RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
#RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
## VBSEO ##
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
(sorry for crossposting here and on vbseo.com, but it's quite urgent, because i have to keep my live forum colsed..).
Kind regards,
nocte