title: Sitecore - rewrite " " to "-" in urls but still allow dashes as legal item names
body: <p>I've read a half dozen guides on rewriting spaces to something more friendly in Sitecore, but all of them rely on Sitecore's <code>&lt;encodeNameReplacements/&gt;</code> element which also reverses the replacement requiring "-" to be an illegal character for names.</p>
  
  <p>The problem with this is that the url of our application has a "-" in the hostname. Sitecore rewrites this resulting in a 404. </p>
  
  <p>Does anyone have ideas on how to do this url rewriting in Sitecore without relying on <code>&lt;encodeNameReplacements</code> and still allowing "-" as a legal item name character? Our current best idea is to use something slighty more complex than a plain "-" such as "--" or "_". This isn't a very good idea, so I'd appreciate any insight you guys have on the matter.</p>
  
  <p>EDIT: We are running a multi-site setup with Sitecore 6.5</p>