在我的.htaccess文件我已经定义了以下规则,
In my .htaccess file I have defined following rule,
RewriteRule t/([^.]+)/$ /videos/tag.php?tag=$1 [QSA]
以上规则工作正常,如果我浏览 http://example.com/videos/t/world+news/
或 HTTP: //example.com/videos/t/events/
但是,当我浏览 http://example.com/videos/t/business+%26+world/
(这里原来的标签是:商业与世界)然后在我的查询字符串标记
变量我收到唯一的业务。 '&安培;世界上,当我通过 $获取可变数据不来了_ GET ['标签']
but when I am browsing http://example.com/videos/t/business+%26+world/
(here original tag is: business & world) then in my query string tag
variable I am getting only business. '& world' is not coming when I am fetching variable data through $_GET['tag']
谁能告诉哪里是在上述规则??
Can anyone please tell where is the problem in the above rule??
尝试的 B标志逃脱后向引用:
RewriteRule ^t/([^.]+)/$ /videos/tag.php?tag=$1 [B,QSA]
修改这个怎么样:
RewriteRule ^([^&]*)&(.*)/$ $1%26$2 [N,NE]
RewriteRule ^t/([^.]+)/$ /videos/tag.php?tag=$1 [QSA]
第一条规则是,以取代&安培;
与 26%