nayanajith/easywebapp/master/.htaccess - Htaccess File

nayanajith/easywebapp/master/.htaccess

#Ignore indexing while allowing symlink following
Options -Indexes +MultiViews +FollowSymLinks
AddCharset UTF-8 .html
AddCharset UTF-8 .csv
#Disable access from un authorized ips
#Order deny,allow
#Deny from all
#Allow from 127.0.0.0/255.0.0.0 ::1/128

#Disable access from un authorized ips
Order allow,deny
Allow from all
#Deny from all

#Further ignore index
IndexIgnore *

#Disable all php file access
<FilesMatch ".(php|log|pdf)$">  
  Order Deny,Allow
  Deny from All
</FilesMatch>

#Allow only *index.php|html files and (eg: web_index.php and app_index.php )
<FilesMatch "index.(php|html)$">  
  Order Allow,Deny
  Allow from All
</FilesMatch>

#Allow only common style and common js function
<FilesMatch "common_css.php|common_js.php">  
  Order Allow,Deny
  Allow from All
</FilesMatch>

On Github License

Files

Download PDF of Htaccess file

Comments

Apache