mod_rewrite messing up my paths

Hello all,

Mod rewrite is messing up my paths.

For example:

www.mysite.com/fruits/1 = www.mysite.com?fruits=1

However, say I had an image at www.mysite.com/images/apple.gif

When I use the rewritten link above, my scripts looking for apple.gif will fail because it will look for them at:

www.mysite.com/fruits/images/apple.gif
instead of
www.mysite.com/images/apple.gif

:confused:
How should this problem be resolved?

Here is my http.access:

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule  fruit/([0-9]+) index.php?fruit=$1
</IfModule>

77,

That’s under the “Missing Support Files” in my signature’s tutorial.

Regards,

DK

Thanks DK, I found the solution here http://www.w3schools.com/tags/tag_base.asp