![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/10/2014, 10:37
|
| | Fecha de Ingreso: octubre-2014
Mensajes: 8
Antigüedad: 10 años, 3 meses Puntos: 0 | |
mod_rewrite con php htaccess Hola a todos, estoy trabajando en un sitio y me gustaría implementar las famosas URL amigables.
Pero realmente no me esta funcionando como quiero, ya que deseo que tanto :
localhost/index
localhost/index/
localhost/index/asd/
lleven a localhost/index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ $1.php
</IfModule>
Esto es lo que llevo hasta ahora, pero solo me funciona en localhost/index y las otros me manda un error 500, ojala me puedan ayudar.
De antemano muchas gracias. |