On one of my previous sites, I created 'clean' urls, using PHP scripts without extensions (using ForceType in .htaccess), by creating extensionless scripts on my web public root directory, and reading the incoming $REQUEST_URI for any additional parameters. For example, a forward slash followed by a 'fake' directory name e.g. extensionless php script name: 'admin';
if you type 'admin/addrecord' then
Code: Select all
explode( '/', $REQUEST_URI )The actual script was just 'admin', but it looks as if you are going to the 'admin' directory and running 'addrecord'. I make the script act according to the parameters after the script name.
I've had this working before, but now when I try it on my new Apache 2.0.58, PHP 5, Win32 system on a new site, it runs the correct script but all of the images don't display properly, even though checking the paths of the images in the browser points to the same image. My sessions also appear not to work with anything after the base script name.
Is this a problem unique to Win32, as when I had it working it was running on Linux, or is there something I must be missing?
Many thanks