I'm working on http://commencenow.com , getting the layout ready for launch. I want to achieve Search-Engine-Friendly URLs by having .htaccess treat cn as cn.php, then having PHP handle the path info. However, this only works partially, and when I include files, it messes up the paths, so the scripts mess up when I don't use absolute paths. Could anyone help out with some advice?
PHP should work on the filesystem whereas .htaccess directives should work on http requests so I am surprised you are having trouble with filesystem includes.
I have been working with mod_rewrite recently doing a similar thing and I used a few definitions within a config file (which I included using relative paths with no problems) e.g. $path_from_root and $image_dir this solved the problems I was having when linking to images and stylesheets etc.