URL and file path mapping

General discussions about WebYep
Post Reply
Posts: 1
Joined: Tue Feb 16, 2010 11:37 am

URL and file path mapping

Post by janogarcia » Tue Feb 16, 2010 11:45 am


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 http://example.com/segment1/segment2/slug.html WebYep will try to access a file named "slug.html" located in /document_root/segment1/segment2/ ?

What if I'm editing the content of http://example.com/segment1/segment2/so ... 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 http://vandelaydesign.com/blog/web-deve ... -tutorial/, haven't tested it though)


Objective Development
Objective Development
Posts: 815
Joined: Fri Nov 10, 2006 4:39 pm

Re: URL and file path mapping

Post by johannes » Thu Feb 18, 2010 4:56 pm

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.

Post Reply