Hey everyone,
I am trying to use mod_rewrite to exchange my urls. I have created the htaccess file… below. It works for the first URLs however when linking ot the second set of URLS it pulls up the right information and queries the database but my stylesheet, javascript, and images wont load… any ideas?
[code=php]
RewriteEngine on
RewriteRule ^camping-and-hiking$ subcategory.php?type=camping
RewriteRule ^fishing$ subcategory.php?type=fishing
RewriteRule ^firearms-and-accesories$ subcategory.php?type=firearms
RewriteRule ^knives-and-swords$ subcategory.php?type=knives
RewriteRule ^police-equiptment$ subcategory.php?type=police
RewriteRule ^self-defense$ subcategory.php?type=self
RewriteRule ^(.*)/(.*)$ subcategory?type=$1&subcat=$2