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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.