Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Safe place for html pages
#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


Messages In This Thread
Safe place for html pages - by marc - 2010-03-27, 22:56:34
Safe place for html pages - by Zegnåt - 2010-03-27, 23:35:25
Safe place for html pages - by marc - 2010-03-28, 00:02:44



Users browsing this thread: 1 Guest(s)