GetSimple Support Forum

Full Version: Safe place for html pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

on a getsimple based website I need to link to online documentations (mainly generated by TypeFriendly http://www.invenzzia.org/en/home) as static html pages.

those docs are actually located in their own dir like this :

GetSimpleRootDir/DocsDir/Pages.Html

my questions are :

is it a good and safe place ?
is there a way to handle the 404 errors ?

Thanks in advance

Marc
marc Wrote:Is it a good and safe place?
As safe as anything else. Plain HTML files will never be a security risk because they don’t run any code on the server.
marc Wrote:Is there a way to handle the 404 errors?
Hmm, well, you can set 404 error page in your .htaccess-file using the following code:
Code:
ErrorDocument 404 /404.php
So, it might work to put it to something like this:
Code:
ErrorDocument 404 /index.php?id=this404slugshouldnotexist
To serve the GetSimple 404 page when a file is not found in DocsDir. Keep in mind though that I didn’t test that.
thanks for your answer,
well unfortunately I am not able to let GetSimple handle the 404 errors even when I try your possibilities.
sure, there is something I am doing wrong...
I'll seek further
thanks again for your help

EDIT :
it works...
but the problem was elsewhere :
the data/other/logs/404monitoring.log.xml file was broken (invalid xml error in the admin panel website health check)
for an unknown reason the </channel> tag was broken
and the 404 errors results were a blank screen