Omni-Designs/ASCMS/master/.htaccess - Htaccess File

Omni-Designs/ASCMS/master/.htaccess

###SECURITY###
#Deny access to files by default
Order deny,allow
Deny from all

#Handle errors with php script
ErrorDocument 400 /Borum/index.php
ErrorDocument 403 /Borum/index.php
ErrorDocument 404 /Borum/index.php

#Disallow indices
Options -Indexes

#Turn off server sig. if not already
ServerSignature off

#Allow access to index.* files
<FilesMatch "^(?:index.(?:php|html|htm))?$">
Allow from all
</FilesMatch>

#Allow access to ajax/json apis
<FilesMatch "^[a-zA-Zd]+.(?:ajax|json).php$">
Allow from all
</FilesMatch>

#Allow access to common includes
<FilesMatch ".(?:jpg|gif|png|css|js|jpeg|gz|tar|pdf|zip|mp3|mp4|mov|flv|ico|swf|txt)$">
Allow from all
</FilesMatch>

#Limit max request size to prevent DOS
LimitRequestBody 10240000

###SEO###
#SEO-ify query string (if Mod_Rewrite.c is a thing) #TBC
#<IfModule mod_rewrite.c>
#RewriteEngine On
#
#</IfModule>

###MISC###
DefaultLanguage en-US
AddDefaultCharset UTF-8

On Github License

Files

Download PDF of Htaccess file

Comments

Apache