Dear folks, in order to remove some really crazy /%A/%E\%FD occuring in the urls by freaking translation software, i am trying to seed some order into the url chaos:
$search = array(' ', ',', '/', '\', 'amp%3B', '+', '--', '[', ']');
$replace = array('-', '' , '' , '', '' , '' , '-' , '' , '' );
Worked fine untill I added the ‘\’ apparently thats a special char?!
Q1. First question: ERROR '\' How to I capture a single (one) \ ?
Q2. Neigher & or amp%3B or & capture and ampercant? what to do capture that from url?
Q3. Enhancement Sugestions? that I have forgotten to make this really timeless?
In other words: are there any other special chars in url that can break the logic like the ‘/’ which represents folder structures that I happily found out myself and removed, not allowed it to be in the url.
Does this help you??