脚本宝典收集整理的这篇文章主要介绍了$_GET中具有转义的&符号的php – htaccess重写规则失败,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
初始链接:
<a href="static/Game-tech-%26-Arts-Lab">link</a>
的.htaccess:
rewriterule ^static/(.*)$/index.PHP?static=$1 [L]
Array ( [static] => Game-Tech- [-Arts-Lab] => )
[B]
flag for Rewriterules.
RewrITeRule ^static/(.*)$/index.PHP?static=$1 [L,B]
当内插$1占位符时,这应该是urlencode特殊字符.它只适用于apache 2.2,但我相信.
找到几个参考文献:
> http://www.dracos.co.uk/code/apache-rewrite-problem/
> mod_rewrite with question marks and ampersands (with PHP)
> http://www.mediawiki.org/wiki/Manual:Short_URL/Ampersand_solution
以上是脚本宝典为你收集整理的$_GET中具有转义的&符号的php – htaccess重写规则失败全部内容,希望文章能够帮你解决$_GET中具有转义的&符号的php – htaccess重写规则失败所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。