

PHP 5 - nefunkčný .htaccess na webe
Mám lokálny webový server a na ňom pomocou htaccess v hlavnom adresári s týmto textom:
php_flag register_globals off
Všetko funguje ako má, ale ak tento súbor nakopírujem na skutočný webový server a obsah nijako nezmením, tak dostanem hlášku:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, postmaster@xxx.sk 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.
Je tam IIS nebo Apache ?
Neviem, myslím, že Apache. Viem len to, že tam tuším nie je podpora ASP, ktoré myslím IIS podporuje.
Zrejme nie je na tom webovom serveri povolené zmeniť nastavenia pomocou .htaccess. Takže to treba povoliť v konfigurácii Apache pomocou AllowOverride. Ak to je hosting, tak môžeš požiadať administrátora. Ak to nepovolí, tak treba zmeniť hosting.