0
什麼是以下URL重寫了的.htaccess代碼:阿帕奇重寫:DIR/file.php富=酒吧和名稱= VAL - > file.php newparam = DIR&富=酒吧和名稱= VAL
www.example.com/dir/file.php
成?
www.example.com/file.php?newparam=dir
和
www.example.com/dir/file.php?param1=val1¶m2=val2
成
www.example.com/file.php?newparam=dir¶m=val1¶m2=val2
在此先感謝。
@Keng mod_rewrite URL重寫使用regexp來匹配現有的URL。 – Orbling 2010-12-09 13:50:56
請使用問題的描述性標題。有[噸](http://stackoverflow.com/questions/941010/apache-url-rewriting)[問題](http://stackoverflow.com/questions/285383/apache-mod-rewrite-htaccess)有關到[URL](http://stackoverflow.com/questions/2920816/apache-mod-rewrite-question)[重寫](http://stackoverflow.com/questions/3430488/apache-url-rewrite-problem)在apache,其中大多數與非描述性標題。 – Lekensteyn 2010-12-09 14:04:26