1bobman1/ci-blog-system/master/.htaccess - Htaccess File

1bobman1/ci-blog-system/master/.htaccess

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

# Mod_Autoindex
<IfModule mod_autoindex.c>
  Options -Indexes
</IfModule>

RewriteEngine On
RewriteBase / 
#IndexIgnore */*

#RewriteRule ^admin/?$ /backend/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^admin(.*)$ /backend/index.php/$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /frontend/index.php/$1 [QSA,L]

#RewriteCond %{REQUEST_URI} .(htaccess|htpasswd|svn|git)
#RewriteRule .(htaccess|htpasswd|svn|git) - [F]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache