I’m refactoring an old project developed in procedural PHP, with a new object oriented approach with Zend.
The website have two main section:
– Miscellaneous pages, lots of old pages still online on the main domain (www)
– A forum section, the part i refactorised with Zend on a forum subdomain
The goal is to refactor the whole website on a main Zend project which would cover the two subdomains.
Now i have to refactor some of the pages of the main domain, and because the domains have separated virtualhosts: the www domain is set to a specific directory and the forum domain is set to another directory (the Zend one), each one with custom URL rewriting.
The obvious solution would be to merge the old pages directories with the forum directory, but i can’t because it would break the folder architecture of Zend.
The ideal solution would be to add a regexp clause in the main domain’s vitualhost to redirect some urls of the www to the directory of the Zend project directory, but i haven’t find a way to do it yet.
Is there a other way? I also can create some temporary subdomain to host the refactored pages but it’s not an elegant solution.
Finally, i choose a mixed solution, i’ll use temporary subdomains for some parts until i could refactor in one time the rest of the old pages.