【发布时间】:2011-09-24 01:03:22
【问题描述】:
我有一个带有查询字符串的查询 URL,我想将其转换为文件夹结构的 URL。
例如:
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 来完成。我只是不知道从哪里开始
【问题讨论】:
标签: .htaccess query-string directory-structure