Hola gente,
tengo un sitio alojado en hostinger, que desarrollo en mi maquina y
luego lo subí. Funciona bien excepto por el tema del .htaccess para
eliminar el index.php
phpinf dice que modrewrite está:
Loaded Modules:
core mod_authn_file mod_authn_default mod_authz_host
mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic
mod_include mod_filter mod_log_config mod_env mod_expires mod_headers
mod_setenvif mod_version prefork http_core mod_mime mod_status
mod_autoindex mod_asis mod_info mod_vhost_alias mod_negotiation
mod_dir mod_actions mod_alias mod_rewrite mod_so mod_php5 mod_ruid2
pero no me fnciona, aunque aca de modo local sí
<IfModule mod_rewrite.c>
# allow_override On
# mod_rewrite is installed
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<IfModule mod_php5.c>
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_php5.c>
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
</IfModule>
si uso el index.php en la url todo funciona bien, sin el index.php me escupe:
----------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator,
ad...@main-hosting.eu 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.
----------------
en hostinger aun no fui capaz de ver los logs, he puesto un ticket a
ver si me dicen por donde puede venir el problema