You are here
Sorry for my english..!!
I have a problem with RewriteRule
I have the following RewriteRule in. Htaccess
RewriteRule ^productos/impresiones$ index.php?accion=impresiones [L,NC]
at the root of the site there is a productos.php file. and goes to this file instead of the file index.php action = .....
If I delete this file, the rewrite works. If this file exists Rewrite stops working ....
Same with:
RewriteRule ^phpinfo/prueba$ index.php?accion=impresiones [L,NC]
Run the file phpinfo.php
I may be wrong?
I copy the. Htaccess
RewriteEngine On
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^http://%1%{REQUEST_URI} [R=301,L]
</IfModule>
RewriteRule ^productos/impresiones$ index.php?accion=impresiones [L,NC]
RewriteRule ^phpinfo/prueba$ index.php?accion=impresiones [L,NC]
RewriteRule ^index$ index.php?accion=index [L,NC]
RewriteRule ^inicio$ index.php?accion=index [L,NC]
RewriteRule ^empresa$ index.php?accion=empresa [L,NC]
RewriteRule ^servicios$ index.php?accion=servicios [L,NC]
RewriteRule ^sucursales$ index.php?accion=sucursales [L,NC]
RewriteRule ^buscar$ index.php?accion=buscar [L,NC]
RewriteRule ^recuperar$ index.php?accion=recuperar [L,NC]
RewriteRule ^registro$ index.php?accion=registro [L,NC]
RewriteRule ^contacto$ index.php?accion=contacto [L,NC]
RewriteRule ^novedades$ novedades.php [L,NC]
RewriteRule ^presupuesto(impresiones|bolsas)$ index.php?accion=presupuesto$1 [L,NC]
RewriteRule ^carrito$ carrito.php [L,NC] RewriteRule ^acceso$ login.php [L,NC]
RewriteRule ^logout$ logout.php [L,NC]
thanks a LOT
Add new comment