Solve Htaccess Rewrite Issue

Hi,

I have some urls from an existing site that I am redirecting to corresponding new pages.

The issue is that some of the urls have “(” and “-” in them and the links spidered by google html hexcodes for the non standard characters.

No matter how I try with hexcode/no hexcode I cant get the redirect rule to match because of this characters in the URL.

Example: The link

products/Acapella-Loop-Pack-4-(91%252d100bpm).html (from google)

One of my attempts of matching this URL

RewriteRule ^products/Acapella-Loop-Pack-4-%2891%252d100bpm%29.html$ /acapella-loops/acapella-loop-pack-4-91-100bpm.html [R=301,L]

I need to know the correct way to deal with these characters to match them to enable the redirect rule.

Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *