mod_rewrite problem

Discussion in 'Site & Server Administration' started by Curtis Hunter, Jan 19, 2009.

  1. #1
    Hi there guys, I'm using the following code:

    RewriteEngine on
    RewriteRule ^category/([0-9]+) index.php?c=cat&i=$1 [NC]
    Code (markup):
    I'm using it at this website: here

    When you go there, try typing category/1 at the end of the url in your address bar. It's supposed to translate to the same as ?c=cat&i=1 and that works just fine.

    However, the pathing for the images and CSS is wrong. The whole website, such as the images, literally believe they are inside the /category folder. How can I make it so that the url is merely fancy, and that the paths for the images and css aren't altered?

    Thanks for all help.

    Curtis
     
    Curtis Hunter, Jan 19, 2009 IP