Unable to load images and stylesheet after URL rewrite
Posted: Wed Feb 14, 2007 7:52 am
I followed several tutorials for rewriting URL for dinamic to static (i.e products?id=2 to products/2/name_of_product) but I have a problem when I type the modified URL the browser loads the page without images and the CSS style assigned to the HTML elements in the page.
The code is classic for the mod_rewrite ():
the rewrite rules
The code is classic for the mod_rewrite ():
the rewrite rules
Code: Select all
//for taking the id value of a product from the new URL format
$sir=$_SERVER['PATH_INFO'];
$sirFinal=explode("/", $sir);
$_GET["p"]=$sirFinal[1];