Posted By

vigoncas on 04/28/10


Tagged

redirect domain htaccess apache alias


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

NARKOZ


Alias .htaccess Redirect 301


 / Published in: Apache
 

  1. # Redirect alias
  2. RewriteCond %{HTTP_HOST} ^www.example.net$ [OR]
  3. RewriteCond %{HTTP_HOST} ^example.net$
  4. RewriteRule ^(.*)$ http://example.com/$1 [R=301,NC,L]

Report this snippet  

You need to login to post a comment.