I’m looking to redirect a couple of URLs with percentage (%
) symbols in them to clean URLS. Example below…
Old URL:
http://www.testsite.co.uk/ecommerce/cabinets/white_gloss_cabinets/led_illuminated_white_cabinets%20/9101900.aspx
New URL:
http://www.testsite.co.uk/products/cabinets/austin/
Does anybody know the correct way to format a redirect for this in the .htaccess file? I’m using WordPress.
Thanks
Try :
I replaced %20 with s+ in the pattern.
In regex , %20 (a space) is matched using s, or s+ for 1 or more spaces.
Hope ,this helps!