Posted By

batfan on 07/02/10


Tagged

htaccess


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Vordreller
vkolev


HTACCESS - Redirect Old Domain to New Domain


 / Published in: Apache
 

  1. Options +FollowSymLinks
  2.  
  3. RewriteEngine on
  4. RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC]
  5. RewriteRule .* http://www.newdomain.com%{REQUEST_URI} [R=301,L]

Report this snippet  

You need to login to post a comment.