0
工程工作:URL重写并不如预期的Apache2
RewriteRule index2.php/xyz/ index2.php/?pt=xyz [QSA,L]
不起作用:
RewriteRule index2.php/(.+)$/ index2.php/?pt=$1 [QSA,L]
我尝试使用上述重写规则,但somewhy它不工作.. 。$ 1保留null
工程工作:URL重写并不如预期的Apache2
RewriteRule index2.php/xyz/ index2.php/?pt=xyz [QSA,L]
不起作用:
RewriteRule index2.php/(.+)$/ index2.php/?pt=$1 [QSA,L]
我尝试使用上述重写规则,但somewhy它不工作.. 。$ 1保留null
为什么$
在(.+)
之后?美元符号意味着在大多数正则表达式引擎中结束。如果你把它拿出来会发生什么?
好像我对这个完全无动于衷,谢谢,当我把$放在它工作的适当位置! – Sinros 2013-04-25 12:57:01