localhost/practica3/ Funciona
localhost/prueba3/gato Funciona
localhost/gato Falla
/.htaccess
Código:
/practica3/.htaccessRewriteEngine On RewriteRule ^$ /practica3/ [L]
Código:
/practica3/index.phpRewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Código:
<?php if(isset($_GET['url'])) echo $_GET['url']; ?>