hostinger y htaccess

1,462 views
Skip to first unread message

Carlos Mora

unread,
Jun 17, 2012, 11:04:14 AM6/17/12
to codeigniter-spanish
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

Roberto Moreno P.

unread,
Jun 17, 2012, 11:35:45 AM6/17/12
to codeignit...@googlegroups.com
La maquina es con algun panel de administración, o tu instalarte el
servidor web?

Saludos

2012/6/17 Carlos Mora <carlosan...@gmail.com>:
> --
> ---
> De-suscripción: codeigniter-spa...@googlegroups.com
> Mas Información: http://groups.google.com/group/codeigniter-spanish?hl=es
> Antes de responder revisa: http://es.wikipedia.org/wiki/Netiquette
> Regístrate en el Censo CI: http://bit.ly/miembroscodeigniteres



--
Roberto Andrés Moreno Pérez

mailitos

unread,
Jun 17, 2012, 7:19:01 PM6/17/12
to codeignit...@googlegroups.com
Hola buenas, tengo alojado un proyecto en hostinger, (dicho sea de paso , muy buen hosting por ser free) y tengo eliminado el index el htaccess que estoy utilizando es el siguiente a ver si te sirve:

# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /
Options FollowSymLinks
<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>


Saludos.
    ErrorDocument 404 /index.php
</IfModule>
 
Reply all
Reply to author
Forward
0 new messages