所以我用這個HTML表單一個簡單的搜索字段形式方法=「獲得」漂亮網址
<form action = "/search/" method = "get">
<input type = "text" name = "search_term"/>
</form>
但是當它處理的是這樣的
http://mysite.com/search/?search_term=something
網址我知道這很正常,但是有沒有辦法讓它像這樣發送?
http://mysite.com/search/something
我會再使用的.htaccess在search
目錄重寫的URL。
如果在.htaccess中使用'mod_rewrite',則應該這樣做。 –