VERY Stupid question and a complete brain FART
If someone types in http://vbseo.com how can i get them to force redirect to http://www.vbseo.com
God its on the tip or my toungue!!!
THIS IS DRIVING ME CRAZY![]()
![]()
![]()
![]()
This is a discussion on stupid question, check that within the General Discussion forums, part of the vBSEO SEO Plugin category; VERY Stupid question and a complete brain FART If someone types in http://vbseo.com how can i get them to force ...
VERY Stupid question and a complete brain FART
If someone types in http://vbseo.com how can i get them to force redirect to http://www.vbseo.com
God its on the tip or my toungue!!!
THIS IS DRIVING ME CRAZY![]()
![]()
![]()
![]()
RewriteCond %{HTTP_HOST} !^www\.vbseo\.com
RewriteRule (.*) http://www.vbseo.com/$1 [R=301,L]
Thanks dude
damn I am fried
Do you put that in .htaccess in the root?Originally Posted by ConqSoft
Yes, since vbSEO has an option to do the same thing for everything under your forums directory.
Cool. I've added it to my forum. Thanks.
In vbSEo where is this option or am i just missing something easy againOriginally Posted by ConqSoft
Hey dude i have a question for youOriginally Posted by ConqSoft
When I implement this
it is affecting my subdomains:RewriteCond %{HTTP_HOST} !^www\.sportsrant\.com
RewriteRule (.*) http://www.sportsrant.com/$1 [R=301,L]
example:
without the aboved in the htaccess:
http://sto.sportsrant.com/member-gallery/
with the aboved in the htaccess:
http://www.sportsrant.com/sto/member-gallery/
and with this one modification, it is affecting the uploading of pictures
is there a way to redo this so it does not affect subdomains!
TIA
Mike
Work this for you?Code:RewriteCond %{HTTP_HOST} ^sportsrant\.com$ [NC] RewriteRule ^(.*)$ http://www.sportsrant.com/$1 [R=301,L]
Add the subdomains to the ignore line like so:
Code:RewriteCond %{HTTP_HOST} !^www\.sportsrant\.com RewriteCond %{HTTP_HOST} !^sto\.sportsrant\.com RewriteRule (.*) http://www.sportsrant.com/$1 [R=301,L]