I have many resources with pagetitles that contain a forward slash "/" character, and I'm hoping to have the automatic alias generation replace every / with a - like is done with the other characters like & ? etc. Its main problem is that it is visually incorrect, and might possibly confuse or irritate search engines.
So I added \/ (backslash, forward slash) to the end of the regex friendly_alias_restrict_chars_pattern so it now reads:
/[\0\x0B\t\n\r\f\a&=+%#<>"~:`@\?\[\]\{\}\|\^'\\]\//
(I added the 3rd- and 2nd-to-last characters beyond what was there by default.)
It made no difference, meaning that my automatically generated aliases still contain the forward slash.
I use use_alias_path set to Yes, if that makes a difference (as in, some full friendly URLs contain a "/" when they are nested underneath container resources to show the nesting).
Of course I can go manually changing them all, but when my user will add new resources whose pagetitles contain the / character, they will come back.
Many thanks if anyone can help me figure out how to translate / to - in automatically generated friendly URL aliases.
watou