.httaccess: convert empty spaces in URLs into "-"
15 Nov
2006
15 Nov
'06
1:26 p.m.
Noticed that URLs generated by Views that make use of arguments, transform empty spaces (derived from a $node->name used as an arg) into "%20" and then manage to get happily to the right final destination. Core Drupal unfortunately does not handle that, so for example if i look for www.mysite.com/natural%20places , i get a PageNotFound error. To prevent this, would it be possible to transform any empty space in any URL into a " - " (minus symbol) via .httaccess or other means? Example: "www.mysite.com/Natural sites" --> "www.mysite.com/Natural-sites" Cheers! Marco
7131
Age (days ago)
7131
Last active (days ago)
0 comments
1 participants
participants (1)
-
marcob