Hey everybody, I’ve got a question about the feasibility of using a particular URL both by EE and by ‘normal’ methods outside of EE.
Here’s my situation: a client’s website is being converted from static to powered by EE slowly over time. This means that some areas of the site will be built on top of EE before others.
The very first section we’re working on lives in a location such as /main/category1/feature/index.php (names changed to protect the innocent), yet there are numerous other important areas & pages that live nearby (for example /main/category2/thing/ and /main/category3/otherthing/ and so on).
In an attempt to not change the URLs, I’ve taken the following steps (though I’m not 1,000% sure they’re the best solution):
1. Made a template group called “feature”
2. Inside that template group, there’s a template called “single”
3. I built a quick and temporary channel/custom-field combo to ensure I can post something in this template
4. I then used the Pages module to set the URL for one particular entry to the exact URL first mentioned above: /main/category1/feature/
What I first noticed was that when attempting to visit that URL, I was served the static version and it seemed like EE stayed out of the picture. “No problem,” I said to myself, “I’ll just remove that /feature/ directory.” It didn’t work … seemingly EE stayed out of the picture and Apache simply returned a 404 page.
The only time EE wanted to jump in and do its job was when I temporarily removed the entire /main/ directory from the file-system. With /main/ removed, EE then served me the entry/template I was looking for (built from steps 1 - 4 above).
[You probably know where I’m going with this now…] So, yeah, that entire /main/ directory can’t be removed because so many other important bits and pieces live in there. Eventually we’ll get the entire site on EE and then those important static bits and pieces can be deleted, but not any sooner.
So, finally, my question: what’s a guy to do? Is there some way to have my cake and eat it too?
Many thanks for any advice you may have!