HTTP Redirect using htaccess
To redirect all incoming traffic to a new site and send an http status code indicating that the content has moved permanently, use the following snippet in your .htaccess file:
RedirectMatch 301 ^(.*)$ http://www.mynewsite.com/
The 301 code is the status for permantly moved content. The regex ^(.*)$ matches all urls and finally http://www.mynewsite.com/ specifies where visitors must be redirected [...]
I am a .NET programmer first and foremost. But in my spare time I like to play around with PHP, Erlang, Haskell, F#,