RewriteCond %{QUERY_STRING} main_page=product_info&products_id=[1,2,3,4,5,6,7,8,9,10,11] [NC]
RewriteRule ^ - [L,G=410]
What wrong has this code?
PHP Code:
RewriteCond %{QUERY_STRING} main_page=product_info&products_id=[1,2,3,4,5,6,7,8,9,10,11] [NC]
RewriteRule ^ - [L,G=410]
If I click on a product type by entering this code on http: //www .mydomain .com/index.php?main_page=product_info&products_id=571 .htaccess get a page with error 404 not found
no category in the link I get error 404
when I enter
# http: //www .mydomain .com/index.php?main_page=product_info&cPath=170&products_id=571 the link works
with the category in the link works
if I remove the code:
PHP Code:
RewriteCond %{QUERY_STRING} main_page=product_info&products_id=[1,2,3,4,5,6,7,8,9,10,11] [NC]
RewriteRule ^ - [L,G=410]
everything works.
I'm trying to put this code because i have many products removed.