[Pro] linking secondary domain to site

I just built a new site in the domain www.ontslaving.nl.
I claimed a second domain-name, www.ontslaven.nl and if you click that, you get my new site, but…
The header says www.ontslaven.nl
The behaviour I would like is to see www.ontslaving.nl, no matter how you get there.
According to my provider this is defined in my website, which is why I post it here!

Thanx for a solution!
Jurjen


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So, if I get this right…you want to redirect people who go to ontslaven.nl to ontslaving.nl? OR is the title of your web page you want to say ontslaving.nl no matter which domain they are on?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

ontslaven.nl is just a name I claimed, which my provider linked to the domain which contains my site ontslaving.nl. So you are redirected to the proper domain.
However, instead of showing the proper name of the domain, it shows the alias www.ontslaven.nl/etcetera all the time.
I would like to see the domain name ontslaving.nl instead.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Is this a case for a 301 redirect? Though it does sound like you have one domain parked on another and if so I am not sure if this would work.

Redirect Old domain to New domain (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

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

Please REPLACE www.newdomain.com in the above code with your actual domain name.


Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options