Forum Moderators: phranque
I want to redirect mysite.com to www.mysite.com (and the other one also).
I'm on a non-IP account with a major hosting company, and use FrontPage which is "supported" by the hosting company.
When I try to use a 301 redirect:
redirect 301 /mysite.com/ [mysites.com...]
it does not work, does nothing. When I do:
redirect 301 / [mysites.com...]
I get a 500 error.
My hosting company sent me this mod rewrite:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule /(.*) [mysite.com...]
This succeeds in only making the banners on my mysite.com page disappear/not found. The mysite.com page continues to appear without the www.
I'm at my wits end here as I suspect these "duplicate" pages are hurting me quite a bit with Google.
The tech "support" suggested I try something with an index.cgi file, which sounds absurd since I've never seen that mentioned for this piddly little redirection issue.
The other code in my .hataccess file (not including the authentications stuff is:
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit POST PUT DELETE>
order deny,allow
deny from all
</Limit>
Any good ideas (besides dumping frontpage) would be appreciated. Again, the point is, all I want to do is redirect mysite.com to www.mysite.com
I believe you have to use FTP to download the existing .htaccess file to your computer, then make the changes, and then FTP it back to the server. If that doesn't help, we'll have to wait until someone comes along who uses FrontPage/FP extensions - I won't put up with its sheningans myself...
Jim
[webmasterworld.com...]