PHP Classes

File: www/.htaccess

Recommend this page to a friend!
  Classes of Fernando Val   Springy   www/.htaccess   Download  
File: www/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Springy
Microframework for Web application development
Author: By
Last change: Adjusts Apache htaccess file
Date: 2 years ago
Size: 589 bytes
 

Contents

Class file image Download
RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(head|trace|track) [NC] RewriteRule ^ - [F,L] # Rewrite para dominio sem URI (ex: www.seusite.com.br/, o que faria cair no index.php) # RewriteCond %{REQUEST_FILENAME} -d [OR] # RewriteCond %{REQUEST_URI} =/ [OR] # RewriteCond %{REQUEST_URI} =/index.php [OR] # RewriteCond %{REQUEST_URI} ="" # RewriteRule .* /_Main.php [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|s?css|js|png|swf|ico|eot|svg|ttf|woff|otf|less|json|pdf|txt|map)$ [NC] RewriteRule ^ _Main.php [L]