bludit/.htaccess
2015-05-18 23:22:05 +00:00

14 lines
301 B
ApacheConf

AddDefaultCharset UTF-8
# Remove the trailing slash from URL
DirectorySlash Off
# Enable rewrite rules
RewriteEngine on
# Deny direct access to .txt files
RewriteRule ^content/(.*)\.txt$ - [R=404,L]
# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [L]