【发布时间】:2014-06-08 16:57:09
【问题描述】:
在我的 PHP 项目中,有几种类型的 URL,例如:
example.com/f/a/somefile.php?a=x
example.com/f/a/somefile.php?a=x&b=y
example.com/f/a/somefile.php?a=x&b=y&c=z
example.com/f/somefile.php?a=x
example.com/f/somefile.php?a=x&b=y
example.com/f/somefile.php?a=x&b=y&c=z
example.com/somefile.php?a=x
example.com/somefile.php?a=x&b=y
example.com/somefile.php?a=x&b=y&c=z
重写上述 URL 的最佳方法是什么,是否有任何方法可以重写适用于上述所有 URL 的友好 URL 规则?太清了。
【问题讨论】:
标签: php .htaccess url url-rewriting friendly-url