【发布时间】:2014-09-30 00:40:12
【问题描述】:
我的索引页的 URL 可以包含多个不同的变量,例如:
index.php?page=page1
index.php?page=page2
index.php?page=page3
index.php?page=page4
我将如何使用 .htaccess 来缩短这些 URL,使它们看起来像这样:
index.php/page1
index.php/page2
index.php/page3
index.php/page4
谢谢。
【问题讨论】:
-
请告诉我们答案是否解决了您的问题。如果是这样,请将问题标记为“已解决”,以帮助其他人!
标签: php .htaccess url url-rewriting