refiking Posted September 8, 2009 Share Posted September 8, 2009 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] Quote Link to comment https://forums.phpfreaks.com/topic/173579-how-to-mod-rewrite-urls-with-a-parenthesis-in-it/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.