20 lines
576 B
ApacheConf
20 lines
576 B
ApacheConf
|
php_flag display_errors 1
|
||
|
|
||
|
FallbackResource /index.php
|
||
|
RewriteEngine On
|
||
|
|
||
|
# Si el archivo existe no es necesario especificar extension ".php"
|
||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
||
|
RewriteRule ^(.*)$ $1.php
|
||
|
|
||
|
# Si el archivo existe no es necesario especificar extension ".html"
|
||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||
|
RewriteCond %{REQUEST_FILENAME}.html -f
|
||
|
RewriteRule ^(.*)$ $1.html
|
||
|
|
||
|
# Si la ruta no existe redirige al index
|
||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||
|
RewriteRule ^(.+?)/?$ index.php?url=$1 [L,QSA]
|