creatic-pw/SharpCMF/master/.htaccess
AddDefaultCharset utf-8
DirectoryIndex index.php index.html index.htm
ErrorDocument 400 /?http_error=400
ErrorDocument 403 /?http_error=403
ErrorDocument 404 /?http_error=404
ErrorDocument 414 /?http_error=414
ErrorDocument 500 /?http_error=500
ErrorDocument 503 /?http_error=503
#Options -Indexes
#Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
RewriteRule ^index.html$ /index.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url_rewrite=$1 [L,QSA]
</IfModule>
<ifmodule mod_expires.c>
<filesmatch ".(jpg|jpeg|bmp|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
</ifmodule>
<Files ~ ".(inc|sql|back|cache|tpl.html|log|eml)$">
order allow,deny
deny from all
</Files>
On Github License
Files
Download PDF of Htaccess file