301 redirect promblem

3 replies
I am redirecting one domain to another.

I deleted contents of the redirected domain directory and left an .htacces file with the following code.

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]

I have this exact .htaccess file on another redirected domain on the same server and it works perfectly.

I know I did something wrong somewhere because my browser tries going to a misspelled domain, my domain is ( example ) DentistOfMyCity.com and it tries going to DentistInMyCity.com. So the error is obviously mine, but the .htacces file does contain the correct domain.

What am I missing.

I did go into webmaster tools and updated a change of address there, which is correct.

Where did I screw up?

Any input is greatly appreciated.
#301 #promblem #redirect
  • Profile picture of the author ferriswannabe
    Anyone?....Anyone?
    Signature

    {{ DiscussionBoard.errors[6028110].message }}
  • Profile picture of the author Earnie Boyd
    Have you tried a different browser? Perhaps it is your ISP doing something stupid, it happens to me occasionally. Empty the cookies in your browser to make sure that something there isn't interfering with it.
    Signature
    {{ DiscussionBoard.errors[6029084].message }}
  • Profile picture of the author SteveJohnson
    Also clear your browser cache.

    When you're working out details of a redirect, always use 302 until you're sure it's working properly then change to 301. Browsers cache 301 directives to cut down on unneeded requests.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[6029236].message }}

Trending Topics