Each script includes a common global file which does things like authentication, database initialization, etc.
There are quite a few scripts which break SRP and use a conditional test inside the content section to show a different content depending on a 'view' state (the variable name used is probably not used consistently -- could view, page, body, etc).
So we might have a members.php script which handles things like:
- Show listings
- Show profile
- Update listing
Code: Select all
members.php?view=listingsSounds like the owners now want a SEF setup and I have tried to explain this is a *big* task. Short of editing all the HTML code (some of which could very well be done in functions, others inline in the actual page.
Can you think of any technique I might use to 'just get it to work'? Short of changing all the URI's by hand, even if I could, what exactly would the .htaccess look like when there are 30-40 scripts? Would the .htaccess need to contain a conditional re-write for *every* script? Including the scripts sub-requests (like I show above)?
How would you handle such a situation?