kas-cor/grunt-skeleton/master/.htaccess - Htaccess File

kas-cor/grunt-skeleton/master/.htaccess

ErrorDocument 401 /error404.html
ErrorDocument 403 /error404.html
ErrorDocument 404 /error404.html

RewriteEngine on
Options +FollowSymlinks
RewriteBase /

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^error404.html$ /404.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ /index.php?p=$1 [L,QSA]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache