Redirect Domain htaccess


I’m trying to redirect my old domain to its new domian. I have figured out that the default method of a html refresh page is very bad for SEO.

So I’m doing my redirect with my .htaccess file.
Which works fine if I type in the domain directly however the old links don’t get reformatted correctly.

Here is my .htacess file
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$$1 [R=permanent,L]

For example



Any Idea how I can fix the new url?


Well the problem appears to be that you don’t have a one-to-one mapping of URL space from to

This means you need to catalog the pages and the old URL and the new URL:

Old: /
New: /

Contact Us
Old: /contact-us/index.php
New: /contact-us.html

And then use a rule set like so:

[code]RewriteEngine on

if the domain is the new domain …

RewriteCond %{HTTP_HOST}

then skip N rules (2 so far) …

RewriteRule .* - [skip=2]

The next N rules map old to new …

RewriteRule ^$ [R=permanent,L]
RewriteRule ^contact-us/index.php $ [R=permanent,L][/code]
:cool: -//- One-time [color=#6600CC]$50.00 discount[/color] on [color=#0000CC]DreamHost[/color] plans: Use ATROPOS7