Login   Register  
PHP Classes
elePHPant
Icontem

File: .htaccess

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Paulo R. B. Rocha  >  SMVC  >  .htaccess  >  Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Configuração do Apache
Class: SMVC
MVC framework implementation
Author: By
Last change: nova versão
Date: 5 years ago
Size: 880 bytes
 

Contents

Class file image Download
<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond $1 !^(index\.php|img|css|js|robots\.txt)
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule> 

<IfModule mod_php5.c>
php_flag display_errors on
</IfModule>

<IfModule mod_expires.c> 
    ExpiresActive On 
    ExpiresByType image/gif "access plus 1 month" 
    ExpiresByType image/jpeg "access plus 1 month" 
    ExpiresByType image/jpg "access plus 1 month" 
    ExpiresByType image/png "access plus 1 month" 
    ExpiresByType text/css "access plus 1 month" 
    #ExpiresByType text/javascript "access plus 1 month" 
    #ExpiresByType application/x-javascript "access plus 1 month" 
</IfModule> 

IndexIgnore *