hemanth/html5demos/master/.htaccess - Htaccess File

hemanth/html5demos/master/.htaccess

<IfModule mod_rewrite.c>
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteBase /

# no-www.org
RewriteCond %{HTTP_HOST} ^www.html5demos.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.html5demo.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^html5demo.com$ [NC]
RewriteRule ^(.*)$ http://html5demos.com/$1 [R=301,L]

# if the file or directory does exist
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .* - [L]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.*) $1.html [QSA,L]

RewriteRule ^(.*)$ page.php [QSA,L]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache