Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Safe place for html pages
#1
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
Reply
#2
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
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
marc
Reply




Users browsing this thread: 1 Guest(s)