日期:2014-05-17  浏览次数:20489 次

如何对url为HTML的地址重写
多条件查询后

地址栏变成了1
1:show.aspx?type=red&&name=box
已经重写成了
2:show.html?type=red&&name=box

在2上增加参数后,如何对show.html?type=red&&name=box&&model=left
重写成show.html

------解决方案--------------------
URLRewriter
------解决方案--------------------
http://blog.csdn.net/joyhen/article/details/8476797
------解决方案--------------------
从写的时候直接把参数带上,你规定
show.html?type=red&&name=box&&model=left等于show.html
代码很多查吧
------解决方案--------------------
引用:
仅仅把扩展名从aspx改成html 有什么意义?


理论上来说搜索引擎对于.html的后缀相对于.aspx要友好
但是最好能重写成show-red-box.html的形式,这样就更加友好啦
------解决方案--------------------
URL重写,百度搜搜!