Home  >  Article  >  Backend Development  >  伪静态Rewrite 解决中文变量的问题

伪静态Rewrite 解决中文变量的问题

WBOY
WBOYOriginal
2016-06-23 14:23:441131browse

如页面http://127.0.0.1/so.php?id=伪静态

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)/(大家注意这里?).html(\?(.*))*$ $1/so\.php\?id=$2

怎样才能做到这样采用中文变量的伪静态。http://127.0.0.1/伪静态.html


回复讨论(解决方案)

对中文字符编码2次

不用二次编码 伪静态本来就是用的正则表达式

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn