Our host continues to have security breeches and our .htaccess file is being replaced with an altered file.
I got to looking today and for some reason I have two different .htaccess files and I'm not sure which one is the correct one to use...
Code:Options All -Indexes RewriteEngine on RewriteCond %{HTTP_HOST} ^hometheatershack.com RewriteRule (.*) http://www.hometheatershack.com/$1 [R=301,L] RewriteCond %{HTTP_REFERER} !^http://hometheatershack.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://hometheatershack.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.hometheatershack.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.hometheatershack.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.snapbug.ws/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.snapbug.ws$ [NC] RewriteRule .*\.(xls|cal|mpeg|mp3)$ http://hometheatershack.com/display.html [R,NC] RewriteRule bfdguide/index\.html http://www.hometheatershack.com/forums/bfd.php [L,R=301]
Code:RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^hometheatershack.com RewriteRule (.*) http://www.hometheatershack.com/forums/$1 [L,R=301] RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.*)$ $1 [L] RewriteCond %{REQUEST_FILENAME}index\.php -f RewriteRule ^(.*)$ $1index.php [L] RewriteCond %{QUERY_STRING} !vbseourl= RewriteCond %{REQUEST_FILENAME} !chat RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L] RewriteRule ^$ vbseo.php?vbseourl=index.php [L] RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L] RewriteRule .*\.(xls|cal|mpeg|mp3)$ http://hometheatershack.com/display.html [R,NC] RewriteRule bfdguide/index\.html http://www.hometheatershack.com/forums/bfd.php [L,R=301]
Is Rewritebase / necessary... or how do I know if it's necessary... or would it hurt to have it in there?
The second one has more than the first, but I'm not sure what's needed and what's not. :dizzy:







Reply With Quote