我有這樣一個網址:.htaccess替換url?
localhost/site/index.php?option=com_cust&tool=edit
,我想換成index.php?option=com_cust&tool=edit
到edit
。這可能嗎?我所做的嘗試不起作用,例如:
RewriteEngine On
RewriteRule ^index.php?option=com_cust&tool=edit localhost/site/edit [L,QSA,R=301]
可能的重複:[htaccess重寫爲查詢字符串](http://stackoverflow.com/questions/1231067/htaccess-rewrite-for-query-string) – Zuul
可能的重複:[how-to -change-URL查詢字符串與 - PHP-htaccess的(http://stackoverflow.com/questions/9528728/how-to-change-url-query-string-with-php-htaccess) – Zuul
你可以閱讀關於htaccess技巧和技巧[這裏](http://corz.org/serv/tricks/htaccess2.php?page=1),並找到一些非常有用的信息! – Zuul