-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
35 lines (31 loc) · 1.83 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Options -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f [OR]
RewriteCond %{SCRIPT_FILENAME} !-d
#REGRAS DE REESCRITA
RewriteRule ^(autenticar|login)+/?$ index.php?instruction=authenticate [NC,L]
RewriteRule ^(sessao-expirada)+/?$ index.php?instruction=Sessao-Expirada [NC,L]
RewriteRule ^(administrador|administracao)+/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/? admin.php?mainAction=$2&subAction=$3&lastAction=$4&endAction=$5 [NC,QSA,L]
RewriteRule ^(funcionario|empregados)+/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/? funcionario.php?mainAction=$2&subAction=$3&lastAction=$4&endAction=$5 [NC,QSA,L]
RewriteRule ^(requisition)+/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/?([a-zA-Z0-9_\-.+]*)/? requisition.php?mainAction=$2&subAction=$3&lastAction=$4&endAction=$5 [NC,QSA,L]
#COMPACTAÇÃO GZIP, aumenta a velocidade de carregamento da página
<ifModule mod_deflate.c>
# mod_deflate configuration
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-font-woff
AddOutputFilterByType DEFLATE image/png image/jpeg image/jpg
# Netscape 4.x has some problems.
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
</ifModule>