Home >Backend Development >PHP Tutorial >.htacess 匹配除/之外的所有字符,正则如何写

.htacess 匹配除/之外的所有字符,正则如何写

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:45:151020browse

.htacess 匹配除/之外的所有字符,正则怎么写?
如: RewriteRule ^(.*)/(.*).html$ ?m=$1&d=$2

这样写无法获取url里面$2的值  因为url中文的  http://www.x.com/音乐/流行音乐 

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