WebSite X5Help Center

 
Paul W.
Paul W.
User

Custom 404 Page how to make?  en

Author: Paul W.
Visited 3150, Followers 1, Shared 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
5 ANSWERS - 1 USEFUL - 1 CORRECT
Barry Maloney
Barry Maloney
User

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

Read more
Posted on the from Barry Maloney
Ad Bakker
Ad Bakker
User

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

Read more
Posted on the from Ad Bakker
Paul W.
Paul W.
User
Author

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

Read more
Posted on the from Paul W.
Incomedia
Claudio D.
Incomedia

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!

Read more
Posted on the from Claudio D.
Paul W.
Paul W.
User
Author

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

Read more
Posted on the from Paul W.