Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- mod_rewrite Directory Problem
June 8, 2006, 12:14 pm
rate this thread
Apache's mod_rewrite. Here's my test .htaccess:
RewriteRule ^qqq$ database.php?cat=0
RewriteRule ^qqq/xxx$ database.php?cat=0
The problem is that database.php contains several relative paths to
images. This means mydomain/qqq works fine and all the images are found
but when typing mydomain/qqq/xxx the file database.php seems to think it
is in the xxx directory and cannot find the images.
What, apart from not using relative paths in database.php, can be done
to make things work correctly so that database.php always thinks it is
in the root directory and finds the images?