View Single Post
Old Sep 19th, 2005, 6:57 PM   #1
Eryk
Programmer
 
Join Date: Jul 2005
Posts: 62
Rep Power: 4 Eryk is on a distinguished road
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.
Eryk is offline   Reply With Quote