Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Redirecting a misspelling to my domain

         

Tonearm

7:29 pm on May 20, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I bought a few common misspelling variations of my domain name and I'd like to redirect them to my domain. I can think of a fews ways of doing this, but which is best? Is there a DNS-level method?

jdMorgan

8:16 pm on May 20, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using DNS A records or CNAMEs, point them all to your 'real' domain. Then on your server, check the requested hostname (domain name) and if it was not your real domain name, then redirect the request to your real domain.

This is basically the same thing as redirecting non-www to www or vice-versa, and the same code can be used. In fact, some ways of coding such a domain canonicalization routine would automatically handle these mis-spells as-is, and no additional code would be necessary.

Jim

bwnbwn

11:24 am on May 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



jdMorgan he needs to make sure the redirects are 301's. With most hosting companies if the above is done their redirect is a 302 and the redirected domain gets indexed.

My host can't set it up corretly and some host say the redirect is set up as a 301 but when checked it is a 302 so I know just set them up on my server and do the 301 from it.

Not knowing how he is set up I suggest he check with his host on this and have make sure the redirects are set up as 301's. If they aren't then he may need his host add them to his server so he can do the 301's or ask his host to do it for him from his server.

Tonearm

12:04 pm on May 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Set up and working great. Thanks guys.

I have an A record for example.com pointing to my IP and a CNAME record for www.example.com pointing to example.com. Then I'm 301ing to my real domain on my server.