regex - mod_rewrite is appending rule to unrelated links ( side-effect ) -
rewriterule ^products/([^/]*)$ /products.cgi?id=$1 [l]
will rewrite /products.cgi?id=$1 /products/$1 expected. appending /products/ links in page. suppose have link in products page is:
<a href="/contact-us.cgi">contact</a>
then products page link to:
/products/contact-us.cgi
that not desire. want keep /contact-us.cgi
Comments
Post a Comment