Revision: 39848
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 21, 2011 20:28 by danideu
Initial Code
.htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] # http://domain/about -> http://domain/about.php -------------------------------------------------- .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] # http://domain/about -> http://domain/index.php?q=about <?php // $url_data is an array $url_data = explode("/",$HTTP_SERVER_VARS['PATH_INFO']); ?>
Initial URL
Initial Description
Sacado de Nettus
Initial Title
ELIMINAR EXTENSIÓN EN LA URL CON .HTACCESS
Initial Tags
htaccess
Initial Language
Apache