MyBB Community Forums

Full Version: htaccess question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
my .htaccess skills are lacking. I think one of these rewrite rules might be redundant so hopefully someone with more experience can help me out.

I have this code for the google seo plugin:

RewriteRule ^([^&]*)&(.*)$ http://mysite.com/$1?$2 [L,QSA,R=301]

then I use these two lines of code to redirect www.mysite.com to http://mysite.com:

RewriteCond %{HTTP_HOST} !^mysite.com$
RewriteRule (.*) http://mysite.com/$1 [R=301,L]

is that 2nd RewriteRule redundant since the 1st one seems to cover it? Also, if it is redundant and I can remove it, should I move that RewriteCond above the 1st RewriteRule?

Thanks!