ukrcms/simple-blog/master/.htaccess
AddDefaultCharset UTF-8
IndexIgnore */*
RewriteEngine ON
#disable hidden files and folders (ex .git)
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)." - [F]
# no WWW
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# redirect from index.html and index.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s(.*)/index.(php|html?) [NC]
RewriteRule ^ /%1 [R=301,L]
# rewrite all fom folder files for nice urls of images
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} files/(.+)
RewriteRule files/(.*)[/.](.*).([a-zA-Z]+)$ files/$1.$3 [L]
# redirect all urls to index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
On Github License
Files