【发布时间】:2015-05-16 15:01:06
【问题描述】:
我想将 URL 目录转换为参数。如何做到这一点?
举例
myurl.com/directory1/?param2=test1
myurl.com/directory2/?param2=test2
myurl.com/directory3/?param2=test3
反映这一点
myurl.com/index.php?param1=directory1¶m2=test1
myurl.com/index.php?param1=directory2¶m2=test2
myurl.com/index.php?param1=directory3¶m2=test3
htaccess 解决方案会很棒。谢谢!
【问题讨论】:
标签: php .htaccess url directory param