mrj Posted September 12, 2017 Posted September 12, 2017 Hi,When I use following code to my .htaccess it doesn't redirect to the error document:Code: ErrorDocument 404 404.phpResult: when I enter a url that doesn't exist, a blank page shows "404.php". Ist shows the relative url I written, but doesn't redirect to the error handling page. But when I use: ErrorDocument 404 http://netrix.ml/404.phpIt works. Please tell me the problem. TIA.
Luigi123 Posted September 12, 2017 Posted September 12, 2017 This support request is being escalated to our root admin.
wolstech Posted September 12, 2017 Posted September 12, 2017 You can actually skip the .htaccess entirely and set these through cPanel: https://tommy.heliohost.org:2083/frontend/paper_lantern/err/index.html
mrj Posted September 12, 2017 Author Posted September 12, 2017 Thanks for your reply. But from cpanel I have to set error pages for each domains. I will be happy if you tell me what is the issue with .htaccess
Krydos Posted September 12, 2017 Posted September 12, 2017 Code: ErrorDocument 404 404.phpTry thisErrorDocument 404 /404.php Putting the / in front in linux means to go all the way back to the webroot before loading the file 404.php.
Recommended Posts