.htaccess - Custom 404 error issues with Apache -
I'm trying to create a custom 404 error for my website. I'm testing it on Windows using XAMPP .
My directory structure is as follows:
error \ 404page.html index.php .htaccess
my .htaccess file The content of:
Error 404 error \ 404page.html
This generates the following result:
Although this is not working - is it something that causes a slash or how should I reference the error document?
Does the site site document make a difference in the live web root in one of the sub folders in how one should reference it?
Thanks in advance.
When I change the file
Error 404 / Terror / 404 Page
I get the following error message that I The link that is linked is not inside the html file - but it is different from what is listed above:
The instructions, when a local URL path, is expected to be fully qualified by the way in your case, this means that the real path for ErrorDocument
is
ErrorDocument 404 /JinPortfolio/error/404page.html
When you improve it in your second attempt, you are looking instead of that page because Http: //localhost/error/404page.html
does not exist, so there is a little error about the 404 error in finding the error management document.
Comments
Post a Comment