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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -