Custom 404 Page how to make?
Autor: Paul W.
Visited 3159,
Followers 1,
Udostępniony 0
Is it possible, if so what is the procedure to make a custom "bad-landing" 404 page. How do you save as an*.shtml file?
Posted on the
Hi Paul
I changed a site to a one page site, so all the previous links become 404. To stop my visitors getting this error I put a .htaccess in my root with the following code
ErrorDocument 404 /index.html
You could change index.html to 404.html containing your message.
Barry
Hi Paul,
I created in my site pages called 401, 402 and 404 Then I hide these from te menu so they are not vissable in your webmenu. The pages will be created by X5. The server will reconize these pages.
On this way I can edit the pages in my X5 project
Cheers
Ad
Autor
Hi Barry and Ad
Thank you for responding.
Ad's solution seems simpler to me. Just to clarify my understanding. Create pages in X5 in the project named 401 402 404 all the same look and hidden from menu. If do that the server will recognize and I do not have to save as 404.shtml? Want to have a custom 404 Landing Page like this https://jpw.ca/404.shtml which is on my site but run by a service the I probably will not renew.
Would what you suggested work?
Paul
Hello Paul,
It is not always enough to create a page with name 404.html to have a custom 404 page. It depends on the settings of the hosting if it is configured to use a page called 404.html
Or you contact the hosting support to ask if this is enough otherwise you need to proceed with Barry's advice.
Many thanks!
Autor
Hi I ended up following Barry's advice as I needed to change the .htaccess file
now I have custom error pages. http://jpw.ca/404.html
Thank you for your help
Paul