1
我有一個帶查詢字符串的查詢URL,我想將它轉換爲文件夾結構化的URL。.htaccess將查詢字符串轉換成文件夾格式
例如:
http://localhost/index.php?page=about-us
http://localhost/index.php?page=contact-us
我怎麼會是隱蔽到
http://localhost/index/page/about-us
http://localhost/page/about-us
我知道這可以用的.htaccess來完成。我只是不知道從哪裏開始
檢查:http://stackoverflow.com/questions/1231067/htaccess-rewrite-for -請求參數 –