WebSite X5Help Center

 
Paul W.
Paul W.
User

Custom 404 Page how to make?  en

Автор: Paul W.
Просмотрено 3158, Подписчики 1, Размещенный 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?

Размещено
5 Ответы - 1 Полезно - 1 Корректно
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

Читать больше
Размещено От 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

Читать больше
Размещено От Ad Bakker
Paul W.
Paul W.
User
Автор

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

Читать больше
Размещено От 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!

Читать больше
Размещено От Claudio D.
Paul W.
Paul W.
User
Автор

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

Читать больше
Размещено От Paul W.