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: Adjustment into Controller lib class;
Adjustment into Errors lib class;
Bug fix into Securyti\AclManager lib class;
Bug fix into Utils\Strings_UTF8's removeAccentedChars method.
Date: 3 years ago
Size: 710 bytes


Class file image Download
RewriteEngine On

RewriteCond %{REQUEST_METHOD} ^(head|trace|track) [NC]
RewriteRule ^(.*)$ - [F,L]

# Rewrite para dominio sem URI (ex:, 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]
#RewriteRule .* /_Main.php?SUPERVAR=/&%{QUERY_STRING} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
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]
#RewriteRule ^(.*?)$ /_Main.php?SUPERVAR=$1&%{QUERY_STRING} [L]

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