[support] .httaccess: convert empty spaces in URLs into "-"

marcob marcob at gawab.com
Wed Nov 15 12:26:41 UTC 2006


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 612 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/support/attachments/20061115/776888ff/attachment.bin 


More information about the support mailing list