GetSimple Support Forum
Safe place for html pages - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Safe place for html pages (/showthread.php?tid=585)



Safe place for html pages - marc - 2010-03-27

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


Safe place for html pages - Zegnåt - 2010-03-27

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.


Safe place for html pages - marc - 2010-03-28

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