Jump to content

How to Mod Rewrite URLS with a parenthesis in it


refiking

Recommended Posts

I have some urls with a parenthesis in it's name and none of those urls work.  What is the right way to point those types of links to a particluar page?  Here is the existing rule:

 

RewriteRule (.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)_&_(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)_&_(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)_&_(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)_&_(.*)/(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)_&_(.*)/(.*)_&_(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)_&_(.*)/(.*)_&_(.*)/(.*)_&_(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)_&_(.*)/(.*)_&_(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)/(.*)_&_(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)/(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/$ product_info.php?products_id=192 [L]
RewriteRule (.*)/14k_White_Gold_Diamond_Necklace_(1/3_ct_tw)/$ product_info.php?products_id=193 [L]

 

I also added this line as a direct link to see if it would work, but it doesn't so I know that parenthesis have something to do with it

RewriteRule ^Necklaces_&_Pendants/Diamond_Necklaces/14k_White_Gold_3-Stone_Diamond_Pendant_(3/4_ct_tw)/ product_info.php?products_id=192 [L]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.