Atozed Forums
custom html page if file not found - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: custom html page if file not found (/thread-1113.html)



custom html page if file not found - MrSpock - 06-22-2019

intraweb 14

If a user tries to open file my-domain/file.htm they get the standard intraweb message 404. I have had no luck changing it with my custom html page.


RE: custom html page if file not found - kudzu - 06-22-2019

Where are you putting file.htm ?


RE: custom html page if file not found - MrSpock - 06-22-2019

(06-22-2019, 03:48 PM)kudzu Wrote: Where are you putting file.htm ?
There is no "file.htm". I just do not want user to get a custom 404 intraweb page "file not found".


RE: custom html page if file not found - kudzu - 06-24-2019

Have looked in the demos? There is a demo showing how to customize the error pages.


RE: custom html page if file not found - MrSpock - 06-24-2019

(06-24-2019, 01:33 PM)kudzu Wrote: Have looked in the demos? There is a demo showing how to customize the error pages.
Does not work - to put IWError.html in "Templates" directory - since "resource not found" is not an error.


RE: custom html page if file not found - Alexandre Machado - 06-26-2019

There is also a 404 page which you can use, using the same principle.


RE: custom html page if file not found - MrSpock - 06-26-2019

What do you mean?


RE: custom html page if file not found - Alexandre Machado - 06-26-2019

if you create a page named IW404.html, following the same principles of other errors, IW will use this page instead of its own internal page.


RE: custom html page if file not found - MrSpock - 06-26-2019

Thanks. It works.