Hi guys,
links in my CMS have, by default, a lot of upper case names and other ugly characters (like "," , ":" , """ , "'" , etc...) already indexed in Google and other search engines.
Since I'm now able (editing the cms code) to make all the urls lowercase and to remove/replace all the other ugly stuff, I need to redirect all the old url to the new ones.
Here is an example:
OLD: http://haran.local/EN/ITALY-holiday-gui ... HUB-REGCAM
NEW: http://haran.local/en/italy-holiday-gui ... HUB-REGCAM
Can I use a ruleset like the following one to make the urls lowercase?
RewriteEngine On
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [.*]
RewriteRule (.*) ${lc:$1} [R=301]
What about the other characters? Should I use and external Rewrite Map?
Thanks,
Haran