Posted By

daipratt on 12/29/10


Tagged

htaccess


Versions (?)

301 redirect one domain to another using .htaccess


 / Published in: Other
 

URL: http://daipratt.co.uk/internet-and-programming/

This will redirect all pages from one domain, to the homepage of another domain.

  1. RewriteEngine On
  2. RewriteRule ^(.*)$ http://www.example.com/$1 [R=301]

Report this snippet  

You need to login to post a comment.