我有一个页面有多个参数。是否有可能使用htaccess或使用PHP更改下面的网址。使用不同的参数名称和(或)值htaccess重定向
http://example.com/result.php?year=2012
Change To
http://example.com/year-2012
http://example.com/result.php?category=naturals
Change To
http://example.com/category-naturals
http://example.com/result.php?year=2012&category=naturals
Change To
http://example.com/year-2012/category-naturals
解决方案正在完善。但2个参数的解决方案并不完美。它需要作为单个参数,并且当我打印请求值时我会遵循。 Array ( [year] => 2012/category-2013 ) 我必须学习正则表达式 – RajivRisi 2014-10-09 13:21:28