Hello, I got problem on my site with sessions. When I access page which doesn’t exists my error page is unable to load current session, but this only happens when I load my page as ErrorDocument. When I access page directly, then everything appear ok. I don’t think there can be anything wrong with my .htaccess, but rather posting its code:
# HTID:xxxxxxx: DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES BELOW
php_value display_errors 1
# DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES ABOVE HTID:xxxxxxx:
ErrorDocument 404 /404.php
No, I didn’t tried my code localy, I am using 000webhost for this. So, if I understand to you right this is excepted behavior and only way to solve this is just to redirect to error page when 404 happens?
You can redirect to whatever page you want when any error code occurs, however if you are doing the redirect from .htaccess directly, sessions effect will be annulled.