Thanks for the input (and happy father's day).
It's way too late to use a framework. This is a legacy project I'm working with so there's no rewriting it in the time frame I'm facing.
As for the rewriting, I'm not sure I can work that either. The relative path references vary in the directory depths which makes it really tricky to get a rewrite scheme together to reverse this one. Also, the directory at the 2nd level (i.e, domain.com/dir1/DIR2) completely varies. I would have to write some rewrite rule that
1) doesn't conflict with the initial rewrite from the current filenames to the new SEO-friendly ones.
2) doesn't conflict with mapping the seo-friendly urls back onto the actual PHP scripts -- the new ones that handle the seo-friendly urls.
3) works at varying directory depth levels. e.g., sometimes we have:
http://domain.com/category/other-category/product-id/
and sometimes we have
http://domain.com/category/other-category/product-id/session-id
The rewrite situation is already becoming a bit tricky and I'm really reluctant to further complicate it. I've tried to solve this before using additional rewrite rules and something always seems to slip through the cracks and break.
mpb001, I did originally use relative URLs so I could develop in a subfolder of my domain and simply move the code up a directory and have it work without having to edit all the files. This is precisely what seems to be biting me in the ass today.
I've gotten a couple of other suggestions which seem pretty smart to me:
1) Get another domain for development and put it in an entirely separate subdirectory. I can then develop there using absolute paths with abandon.
2) use a <base> tag. Although I'm a bit worried about browser support for this, I think I'll give it a try.