我想從我的日曆中刪除查詢字符串,但我的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