When I use mod rewrite, my page that comes up is the proper page but all my links paths are wrong because they now have the mod rewrited path in there links.
RewriteEngine On
RewriteRule category/([0-9]+)$ products.php?view=$1 [L]
When I go to http://localhost/sites/se/category/8
I get to the page products.php?view=8 I assume because the correct data is pulled from the database but all my images and css links are broekn because there paths now have the "category" in there looking like
http://localhost/sites/se/category/images/page/menu1.jpg
when it should be
http://localhost/sites/se/images/page/menu1.jpg
How would I go about fixing this? Any help would be great, thank you.