I'm replacing VBSEO and I want to confirm that my htaccess file will work correctly. Here it is:
# 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)?)$ dbseo_sitemap/dbseo_getsitemap.php?sitemap=$1 [L]
#RewriteCond %{QUERY_STRING} !(dbseourl=|do=)
RewriteCond %{REQUEST_URI} !(memberlist|report|admincp/|modcp/|chat|cron|login|private|profile|register|search|subscription|moderation|calendar|newreply|newthread|inlinemod|newattachment|attachment|editpost|infraction|clientscript|psistats|misc|index|reputation|dbseocp.php)
# 16-SEP-2011: Inserted for kill switch
RewriteCond %{REQUEST_URI} !^/circuitbreaker(.*)$
# 10-AUG-2012: Added exception for forumrunner application
RewriteCond %{REQUEST_URI} !^/forumrunner(.*)$
# 22-AUG-2012: Added exception for dbtech for vbquiz assets
RewriteCond %{REQUEST_URI} !^/dbtech(.*)$
# 14-SEP-2012: Added exception for dbseo_sitemap
RewriteCond %{REQUEST_URI} !^/dbseo_sitemap(.*)$
RewriteRule ^(.*\.php)$ dbseo.php?dbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ dbseo.php?dbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ dbseo.php?dbseourl=$1 [L,QSA]
Thanks!
# 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)?)$ dbseo_sitemap/dbseo_getsitemap.php?sitemap=$1 [L]
#RewriteCond %{QUERY_STRING} !(dbseourl=|do=)
RewriteCond %{REQUEST_URI} !(memberlist|report|admincp/|modcp/|chat|cron|login|private|profile|register|search|subscription|moderation|calendar|newreply|newthread|inlinemod|newattachment|attachment|editpost|infraction|clientscript|psistats|misc|index|reputation|dbseocp.php)
# 16-SEP-2011: Inserted for kill switch
RewriteCond %{REQUEST_URI} !^/circuitbreaker(.*)$
# 10-AUG-2012: Added exception for forumrunner application
RewriteCond %{REQUEST_URI} !^/forumrunner(.*)$
# 22-AUG-2012: Added exception for dbtech for vbquiz assets
RewriteCond %{REQUEST_URI} !^/dbtech(.*)$
# 14-SEP-2012: Added exception for dbseo_sitemap
RewriteCond %{REQUEST_URI} !^/dbseo_sitemap(.*)$
RewriteRule ^(.*\.php)$ dbseo.php?dbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ dbseo.php?dbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ dbseo.php?dbseourl=$1 [L,QSA]
Thanks!