Options +FollowSymLinks | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !^/robots\.txt$ | |
RewriteCond %{HTTP_HOST} \.([a-z-]+\.[a-z]{2,6})$ [NC] | |
RewriteRule ^/(.*)$ http://%1/$1 [R=301,L] | |
<FilesMatch "\.(htm|html|css|js|php)$"> | |
AddDefaultCharset UTF-8 | |
DefaultLanguage en-US | |
# this is my comment | |
</FilesMatch> | |
Allow from 10.1 | |
# A (partial) domain-name | |
Allow from "10.1.0.0/255.255.0.0" |