Wrong way to alias domain names
Posted: Tue Jul 06, 2010 4:01 am
So I have this website existing for 5 years, say thelongdomainname.com. Now the client wanted an easier shorter name so he registered domain.com. The webhost made the shorter version an alias for the longer version.
Since it's bad SEO to have multiple domains point to the same content, I wanted to do a 301 redirect in htaccess, from the new, shorter name to the existing longer name. Since the longer name has all the right keywords in it and has good ranking, I did it like that instead of redirecting the old long name to the new short one.
I tried:
However, not working. Wondering why I discovered this: the webhost put this in place of the new domain:
This seems like a very weird and wrong way to do this. What do you think? Why would they do it like this instead of using a normal alias or redirect?
(p.s. I placed this question here in general discussion because it's a bit of SEO, server stuff and webhost stuff.)
Since it's bad SEO to have multiple domains point to the same content, I wanted to do a 301 redirect in htaccess, from the new, shorter name to the existing longer name. Since the longer name has all the right keywords in it and has good ranking, I did it like that instead of redirecting the old long name to the new short one.
I tried:
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.nl$ [NC]
RewriteRule ^(.*)$ http://www.thelongdomainname.com/$1 [R=301,L]
Code: Select all
<HTML>
<HEAD>
<TITLE>comain.com</TITLE>
</HEAD>
<FRAMESET ROWS="*,0">
<FRAME SRC="http://www.thelongdomainname.com/" NORESIZE>
<NOFRAMES>
Your browser does not support frames.
</NOFRAMES>
</FRAMESET>
</HTML>
(p.s. I placed this question here in general discussion because it's a bit of SEO, server stuff and webhost stuff.)