HoBi/hobi.github.io/master/src/.htaccess
Options -Indexes
#Options +FollowSymLinks
RewriteEngine On
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !.(css|js|icon|zip|rar|png|jpg|gif|pdf)$ index.php [L]
# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Redirect non-www to www:
#RewriteCond %{HTTP_HOST} !^www. [NC]
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
AddType application/x-httpd-php .php .phtml
On Github License
Files
Download PDF of Htaccess file