when i close the rewrite. the url like the following:
http://example.com/about.php
http://example.com/about.php?id=42
http://example.com/products.php?id=43
http://example.com/products_show.php?cid=49&id=46
now i using the following code in .hactess file
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^index.html$ index.php
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^about-([0-9]+)-([0-9]+)\\.html$ about.php?cid=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^product-([0-9]+)\\.html$ product.php?cid=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^productshow-([0-9]+)-([0-9]+)\\.html$ productshow.php?cid=$1&id=$2
Other pages are ok except product detail page and
http://example.com/about.php?id=42
.what’s wrong with the code? thank u.