我想从我的日历中删除查询字符串,但我的mod_rewrite不追加查询字符串。Mod_rewrite帮助
该网站是http://cacrochester.com/Calendar ,如果你点击链接去一个不同的月份,查询字符串通常http://cacrochester.com/Calendar?currentmonth=2010-11
是我下面的规则,它只是没有查询字符串,当您单击追加所以下个月的链接,它只停留在10月份。我的规则有什么问题?
这里是我的规则
RewriteCond %{QUERY_STRING} !^$
RewriteRule ^.*$ http://cacrochester.com/Calendar? [NC,R=301,L]
编辑:
我要的是采取URL像http://cacrochester.com/Calendar?currentmonth=2010-11并把它变成像http://cacrochester.com/Calendar/2010-11
你说在第一句话中你想删除查询字符串,但你的问题是如何保留它们。这是什么? – 2010-10-21 23:11:44
只是澄清一下,你正在试图使用'GET'而不使用地址栏中显示的查询字符串? – drudge 2010-10-21 23:12:47
对不起。我希望查询字符串像http://cacrochester.com/Calenar/2010-11 – Catfish 2010-10-22 00:02:05