标签: nginx url-rewriting spaces
我的网址如下:
http://somesite.com/directory/subdirectory/This Path Looks Like This/So Does this one
我想用连字符替换空格,所以它看起来像这样:
http://somesite.com/directory/subdirectory/This-Path-Looks-Like-This/So-Does-this-one
我使用Google和Bing浏览了互联网,但我找不到令人满意的解决方案。