Friday, April 2, 2010

htaccess : Require no subdomain

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} \.([^\.]+\.[^\.0-9]+)$
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home