I would like a small project / demo code put together in PHP/HTML (apache) that accomplishes the following:
1. Browse to [login to view URL]
2. the .htaccess file uses url rewriting to direct the request to /zone1/[login to view URL] which will contain all of the php code to accomplish these functions
3. the function in [login to view URL] looks for a file called [login to view URL] (if it does not exist then direct the request to a 404 response. If [login to view URL] does exist, then [login to view URL] is dynamically created and served by:
3a. include/insert what is in a file named zone1/[login to view URL]
3b. include/insert what is in the zone1/[login to view URL] file
3c. include/insert what is in a file named zone1/[login to view URL]
4. the .httaccess rules should block access to all .phtml files
Just to be clear: [login to view URL] could be any file name. Do not hard code it. Get the file name from the URL.
So in other words, a user can browse to any file in zone1 and if there is a .phtml version of that file, it is processed to add the header and footer and served as a html file.
directory structure:
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
Note that I am not a php developer so if these instructions and this process needs to be modified to best accomplish the task then that is ok.
Deliver the demo site in a single zip file.