You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
1.2 KiB

RewriteEngine On
RewriteCond %{ENV:ACC_ALIAS} ^(.*)$
RewriteRule .* - [E=ALIAS:%1,NE]
# punto de entrada de la aplicación
RewriteCond %{REQUEST_URI} .*/index\.php [OR]
# ignoramos el acceso a recursos a través de rs.php
RewriteCond %{REQUEST_URI} .*/rs\.php.* [OR]
RewriteCond %{REQUEST_URI} .*/favicon\.ico [OR]
RewriteCond %{REQUEST_URI} .*/servicios\.php [OR]
RewriteCond %{REQUEST_URI} .*/rest\.php [OR]
RewriteCond %{REQUEST_URI} .*/clearapc\.php [OR]
# ignoramos el acceso a recursos en las carpetas js, css e img
RewriteCond %{REQUEST_URI} .*/(js|css|img|temp|_comp).*
RewriteRule (.*) - [L,NS]
# RewriteRule ^/?test.pdf %{ENV:ALIAS}/img/logo.png [L,NS]
# las expresiones a matchear pueden o no empezar con una / dependiendo de si vienen
# a través de un alias o un vhost (estos vienen con una barra adelante). Por eso el ^/?
# http://www.regular-expressions.info/reference.html
RewriteRule ^/?rest/(.*)?$ %{ENV:ALIAS}/rest.php?path=$1 [L,NS,QSA]
RewriteRule ^/?(.+?)/(.+?)/(.+)/?$ %{ENV:ALIAS}/index.php?__o=$1&__a=$2&__p=$3 [L,NS,QSA]
RewriteRule ^/?(.+?)/(.+?)/?$ %{ENV:ALIAS}/index.php?__o=$1&__a=$2 [L,NS,QSA]
RewriteRule ^/?(.*?)/?$ %{ENV:ALIAS}/index.php?__o=$1 [L,NS,QSA]