I am new to this mod_rewrite. I have been successfully able to rewrite the URL something like this: "http://mydomain.com/products/12" to "http://mydomain.com/products.php?prodId=12"
But when I give http://mydomain.com/products/12 in the address bar... the css and js files are not loaded.
But when I access "http://mydomain.com/products.php?prodId=12" the js and css get loaded properly.Please let me know if I am missing out on something.
Please give the reason behind this.Should I modify the .htaccess file?What is the problem?
My .htaccess looks like this
Options +FollowSymlinks RewriteEngine on RewriteRule ^products/([0-9][0-9])/$ /products.php?prodId=$1 [L]
My css and js folders are also in the same folder