Posted By

abwaters on 12/10/12


Tagged

redirect apache


Versions (?)

domain.com->www.domain.com Apache Redirect


 / Published in: Apache
 

This redirect is domain independent.

  1. RewriteCond %{HTTP_HOST} !^www\.
  2. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Report this snippet  

You need to login to post a comment.