|
Apache mod_rewrite
I am on the quest to make my URL's more user friendly.
I have decided to use the oh-so-common method of:
/somevarhere/anothervarhere/etc/
instead of
index.php?a=somevarhere&b=anothervarhere&c=etc
The problem is that the file paths inside the HTML page (to images and css files) detects the relative path as from the mod_rewritten URL as opposed to the actual directory.
So if I have this image path in a file:
images/bg.gif
It would turn out to be:
/somevarhere/anothervarhere/etc/images/bg.gif
I'm not really sure how to fix this, but any help is much appreciated.
|