PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Bill 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: 12 years ago
Size: 880 bytes


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 !mod_rewrite.c>
    ErrorDocument 404 /index.php

<IfModule mod_php5.c>
php_flag display_errors on

<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" 

IndexIgnore * 
For more information send a message to info at phpclasses dot org.