royanonuevo/My-Web-Kit/master/.htaccess - Htaccess File

royanonuevo/My-Web-Kit/master/.htaccess

# Prevent viewing of .htaccess
<Files ".htaccess|robots.txt">  
   order allow,deny  
   deny from all  
</Files>

# Prevent indexing the folder
Options -Indexes

# Disable server signature, hide server information/apache information/apache version
ServerSignature Off

# Disable allow_url_fopen, to prevent remote locations via ftp or website
php_flag allow_url_fopen off

# Calling customize 404 and 403 page when user accessing on invalid url
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php

# BEGIN MOD REWRITE
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /labs/my-web-kit/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /labs/my-web-kit/index.php [L]
</IfModule>
# END MOD REWRITE

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache