English 中文(简体)
• 改用标准,以取代%2d vshyphen
原标题:mod_rewrite rule to replace %2d vs hyphen

我如何制定<条码> RewriteCond/Rewrite Rule 纽约总部 301 redirect the URL

http://www.example.com:8080/~user/two%2dwords/more%2dwords/

纽约总部

http://www.example.com:8080/~user/two-words/more-words/

i.e. 替换所有<代码>%2d encodings vs. hyphens?

最佳回答

If the RewriteRule target URL contains special charaters those charaters can be converted to hexdoce by using No escape [NE] flag.

问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签