Foro de elhacker.net

Programación => PHP => Mensaje iniciado por: Chazy Chaz en 13 Mayo 2012, 18:17 pm



Título: Undefined index: HTTP_MOD_REWRITE
Publicado por: Chazy Chaz en 13 Mayo 2012, 18:17 pm
Hola, no se a que se puede deber, si la configuracion del archivo .htacces o el script del index.

Cuando entro a la web me da este error:

Citar
Notice
Message: Undefined index: HTTP_MOD_REWRITE

Reporting File: application/core/Frostbite.php
Line: 53

Debugging:

Backtrace Level 1:
File: /home/website/public_html/index.php
Line: 39
Class: Application\Core\Frostbite
Function: Init
Function Args:

ARGS => Array (0)
(
)

No consigo encontrar el problema. El servidor web tiene mod_rewrite on x10.mx (http://x10.mx)
Con Xampp me funciona perfectamente :S :S

Gracias

salu2
dew ;)


Título: Re: Undefined index: HTTP_MOD_REWRITE
Publicado por: Chazy Chaz en 15 Mayo 2012, 19:20 pm
fixed :P

Código:
if( !isset($_SERVER['HTTP_MOD_REWRITE']) ) $_SERVER['HTTP_MOD_REWRITE'] == 'Off';

to

Código:
if( !array_key_exists('HTTP_MOD_REWRITE', $_SERVER) ) $_SERVER['HTTP_MOD_REWRITE'] == 'Off';