我在.httasse (apache/php服务器)的一小段代码中遇到了一个技术难题。
我想要重定向此URL:
清理URL: example.com/archives.html ves.html/2014-2-10
因此,我使用以下代码:
RewriteRule ^(archives\.html)/([0-9-]+)/?$ /$1/?option=com_arcives&date=$2 [L,NC,QSA].它可以工作,但它不能正常工作。
我使用了R标志,所以Clean URL必须只改变internally...but,这是不可能的!
点击前:example.com/archives.html ves.html/2014-2-10
点击后自动更改为: example.com/archives.html?option=com_arcives&date=$2014-2-10
我只想把它留在内部...
谁知道我的问题在哪里?
我在windows(本地主机)上使用wampserver
发布于 2014-02-26 23:48:13
R标志使其重定向,您不应该使用该标志。
https://stackoverflow.com/questions/22046143
复制相似问题