bueno les cuento:
tengo un sitio que necesitaba borrar las extensiones de los archivos con el fin de hacer mas amigables las urls, y ademas cuando la url no se encuentre en la pagina enviarlo a una pagina personalizada 4040 , use esto en .htaccess
Código:
Lo de las extensiones funciona perfecto pero cuando ingreso una url que se que no existe me manda un error tipo 500 y no va a la pagina 404.php que diseñe.Options FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] ErrorDocument 400 /404.php ErrorDocument 401 /404.php ErrorDocument 403 /404.php ErrorDocument 404 /404.php ErrorDocument 500 /404.php
Cita:
cuando elimino el código para "eliminar extension" envía a usuario a la pagina 404 y así viceversaInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at www.url.com Port 80
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at www.url.com Port 80
Consulta: ¿como hago para que los 2 no pueden convivir?