0
RewriteRule ^products/([^/]*)$ /products.cgi?id=$1 [L]

Will rewrite /products.cgi?id=$1 as /products/$1 as expected. But it is also appending /products/ to all links in the page. Suppose i have a link in the products page that is:

<a href="/contact-us.cgi">Contact</a>

Then the products page will link to:

/products/contact-us.cgi

That is not something i desire. I want to keep it /contact-us.cgi

0 Answers0