Page 1 of 1

URL and file path mapping

Posted: Tue Feb 16, 2010 11:45 am
by janogarcia

I'm doing some research on simple CMSs (installable or remote) and I'm not sure about how WebYep handles URLs and file path mapping...

Does WebYep assumes that there will be a 1:1 mapping between the URL and the actual file path to be edited?

That is, if I'm editing WebYep will try to access a file named "slug.html" located in /document_root/segment1/segment2/ ?

What if I'm editing the content of ... my-mvc-app and the associated file is ABOVE the document_root (as it happens on many applications)?

Does WebYep allows custom routing/association between URLs and File system paths? (It seems possible in CushyCMS ... -tutorial/, haven't tested it though)


Re: URL and file path mapping

Posted: Thu Feb 18, 2010 4:56 pm
by johannes
In WebYep content is always stored in the webyep-system/data folder. No files in other areas of the server's disc can be edited. And these files can also only be changed when providing the correct login credentials.

WebYep is not editing the content of the page itself - neither inside the document root nor outside of it.

A securely configured server should not allow PHP to access content outside the document root anyway (using the open_basedir directive).

Whether a server allows accessing files outside the document root via URL/filename mapping is a question of server configuration.