Htaccess File


Options -Indexes
Options +FollowSymLinks
<IfModule mod_rewrite.c> 
    RewriteEngine On
    RewriteBase /admin/
    # If the file is NOT the index.php file
    #RewriteCond %{REQUEST_FILENAME} !index.php
    # Hide all PHP files so none can be accessed by HTTP
    #RewriteRule (.*).php$ index.php/$1    
    # If the file/dir is NOT real go to index
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [QSA,L] 
<ifModule mod_expires.c>
  <filesmatch ".(ico|flv|jpg|jpeg|png|gif|js|css|swf)$">
       ExpiresActive on
       ExpiresDefault "access plus 1 year"
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/xhtml text/html text/plain text/xml text/javascript application/x-javascript text/css
FileETag none 
<IfModule !mod_rewrite.c> 
    # Without mod_rewrite, route 404's to the front controller
    ErrorDocument 404 /index.php 
Exit mobile version