【发布时间】:2015-02-11 08:49:14
【问题描述】:
我的网站有动态页面如
http://www.example.com/detailpage.php?sn=1%20&&%20database=news
http://www.example.com/detailpage.php?sn=1%20&&%20database=article
http://www.example.com/detailpage.php?sn=1%20&&%20database=interview
还有很多其他
我想从 url 中删除或隐藏查询字符串变量并显示为
http://www.krishisansar.com/detailpage/news/1
http://www.krishisansar.com/detailpage/article/1
是否可以将查询字符串更改为斜线?如果没有,如何删除 & 并制作为
/news=1 or /news=2,
/article=1 or /article=2 .
通过这个,我可以从 w3c 进行验证。
【问题讨论】:
标签: php database .htaccess query-string