.htaccess: Moving to a new domain with a 301 redirect

Redirect 301 / http://www.example.com/

Good to know information.

Addendum: With exclusions;

RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*olddomain.com$ [NC]
RewriteCond %{REQUEST_URI} !^/foldername(/.*)?$ [NC]
RewriteCond %{REQUEST_URI} !^/filename.php
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

2008-03-29

index