File: public_html/dev.htaccess

Recommend this page to a friend!
  Classes of Carlos Eduardo Barcelos Amaral  >  Base MVC Framework  >  public_html/dev.htaccess  >  Download  
File: public_html/dev.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Base MVC Framework
MVC framework to be the base of Web applications
Author: By
Last change:
Date: 4 years ago
Size: 485 bytes
 

Contents

Class file image Download
Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
 Order deny,allow
 Deny from all
</FilesMatch>

RewriteEngine On

RewriteBase /base/public_html/

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^$ index.php?URI=$1 [L,QSA]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)/? index.php?URI=$1 [L,QSA]
For more information send a message to info at phpclasses dot org.