Hallo Ole,
Mein Deutsch is sehr slecht, Ich hoffe das du verstehed dat ich mein antword in Englisch schreibe:
Hi Ole, My German is very bad, so I hope you understand I'll write this in English.
Your website can be accessed with www.domain.com and domain.com.
But you want to reroute all traffic to www.donmain.com
Solution:
Do a 301 redirect for all http requests that are going to the wrong url.
use in you .httaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
This will translate all incomming traffic to www.domain.com, with a 301 redirect.
This means a permanent reroute, and will be updates in search engines.
I hope this is the answer to your question.
Viele Grussen
oleolson, on Oct 14 2007, 07:07 PM, said:
Hallo zusammen,
ich habe bis jetzt immer die englische Abteilung genutzt, finde aber, dass das deutsche Board ruhig ein wenig Bewegung mehr vertragen kann.
Meine Frage:
Kennt sich jemand mit htaccess-files aus?
Ich benutze die mitgelieferte Version des htaccess will aber zusätzlich von domain.com auf www.domain.com umleiten.
Kann mir da jemand helfen?
Gruß ole
Edited by Ed Headset, 14 October 2007 - 05:43 PM.