diff --git a/ieducar/module/.htaccess b/ieducar/module/.htaccess index db1df58..8d35380 100644 --- a/ieducar/module/.htaccess +++ b/ieducar/module/.htaccess @@ -1,13 +1,26 @@ - - RewriteEngine On - - RewriteCond %{SCRIPT_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} -d [OR] - RewriteCond %{REQUEST_FILENAME} -s [OR] - RewriteCond %{REQUEST_FILENAME} -f - - # Se for um arquivo e o tamanho for maior que zero, faz nada - RewriteRule ^.*$ - [L] - RewriteRule ^(.*)/(imagens|scripts|styles)/(.*)$ /intranet/$2/$3 [NC,L] - RewriteRule ^.*$ index.php [NC,L] - + + RewriteEngine On + + RewriteBase /module/ + + RewriteCond %{SCRIPT_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} -d [OR] + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -f + + # Se for um arquivo e o tamanho for maior que zero, faz nada + RewriteRule ^.*$ - [L] + RewriteRule ^(.*)/(imagens|scripts|styles)/(.*)$ /intranet/$2/$3 [NC,L] + + RewriteRule ^(.*/)(.*intranet/.*)$ /$2 [NC,L,R=301] + RewriteRule ^(.*/)(.*index\.php)$ /$2 [NC,L,R=301] + RewriteRule ^(.*/)(.*logof\.php)$ /intranet/logof\.php [NC,L,R=301] + RewriteRule ^(.*/)(.*meusdados\.php)$ /intranet/meusdados\.php [NC,L,R=301] + RewriteRule ^(.*/)(.*_xml.*)(\.php)$ /intranet/$2.php [NC,L,R=301] + RewriteRule ^(.*/)(.*erro_banco\.php)$ /intranet/erro_banco\.php [NC,L,R=301] + + RewriteRule ^(.*/)(.*educar_pesquisa_cliente_lst\.php)$ /intranet/educar_pesquisa_cliente_lst\.php [NC,L,R=301] + RewriteRule ^(.*/)(.*educar_pesquisa_obra_lst\.php)$ /intranet/educar_pesquisa_obra_lst\.php [NC,L,R=301] + + RewriteRule ^.*$ index.php [NC,L] + -- libgit2 0.21.2