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.)