Commit aaca0da66dd6da9afd4e5484091b279276c1fbdb

Authored by Lucas D'Avila
1 parent b21c2edc
Exists in master

Adicionado regras para reescrita de urls em /intranet

Showing 1 changed file with 26 additions and 13 deletions   Show diff stats
ieducar/module/.htaccess
1   -<IfModule mod_rewrite.c>
2   - RewriteEngine On
3   -
4   - RewriteCond %{SCRIPT_FILENAME} !-f
5   - RewriteCond %{REQUEST_FILENAME} -d [OR]
6   - RewriteCond %{REQUEST_FILENAME} -s [OR]
7   - RewriteCond %{REQUEST_FILENAME} -f
8   -
9   - # Se for um arquivo e o tamanho for maior que zero, faz nada
10   - RewriteRule ^.*$ - [L]
11   - RewriteRule ^(.*)/(imagens|scripts|styles)/(.*)$ /intranet/$2/$3 [NC,L]
12   - RewriteRule ^.*$ index.php [NC,L]
13   -</IfModule>
  1 +<IfModule mod_rewrite.c>
  2 + RewriteEngine On
  3 +
  4 + RewriteBase /module/
  5 +
  6 + RewriteCond %{SCRIPT_FILENAME} !-f
  7 + RewriteCond %{REQUEST_FILENAME} -d [OR]
  8 + RewriteCond %{REQUEST_FILENAME} -s [OR]
  9 + RewriteCond %{REQUEST_FILENAME} -f
  10 +
  11 + # Se for um arquivo e o tamanho for maior que zero, faz nada
  12 + RewriteRule ^.*$ - [L]
  13 + RewriteRule ^(.*)/(imagens|scripts|styles)/(.*)$ /intranet/$2/$3 [NC,L]
  14 +
  15 + RewriteRule ^(.*/)(.*intranet/.*)$ /$2 [NC,L,R=301]
  16 + RewriteRule ^(.*/)(.*index\.php)$ /$2 [NC,L,R=301]
  17 + RewriteRule ^(.*/)(.*logof\.php)$ /intranet/logof\.php [NC,L,R=301]
  18 + RewriteRule ^(.*/)(.*meusdados\.php)$ /intranet/meusdados\.php [NC,L,R=301]
  19 + RewriteRule ^(.*/)(.*_xml.*)(\.php)$ /intranet/$2.php [NC,L,R=301]
  20 + RewriteRule ^(.*/)(.*erro_banco\.php)$ /intranet/erro_banco\.php [NC,L,R=301]
  21 +
  22 + RewriteRule ^(.*/)(.*educar_pesquisa_cliente_lst\.php)$ /intranet/educar_pesquisa_cliente_lst\.php [NC,L,R=301]
  23 + RewriteRule ^(.*/)(.*educar_pesquisa_obra_lst\.php)$ /intranet/educar_pesquisa_obra_lst\.php [NC,L,R=301]
  24 +
  25 + RewriteRule ^.*$ index.php [NC,L]
  26 +</IfModule>
... ...