Home  >  Article  >  Backend Development  >  关于phpURL连接小问题

关于phpURL连接小问题

WBOY
WBOYOriginal
2016-06-23 13:59:351712browse

guang.com/baobei/goto?proId=5854525&src=http%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fid%3D25446476659&pmId=8247769
问题1 比如上面网址,这个goto后面没加文件后缀比如goto.php也可以,为什么呢?
问题2 另外这个网址是不是防止百度对其页面的屏比呢,程序的实现是不是先跳转到goto页面,然后这个goto页面进行JS跳转呢?


回复讨论(解决方案)

问题2没说清楚.这个网址是不是防止百度对淘宝连接的屏比呢

guang.com/baobei/goto?proId=5854525&src=http%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fid%3D25446476659&pmId=8247769

是对
guang.com/baobei/goto/index.php?proId=5854525&src=http%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fid%3D25446476659&pmId=8247769

的简化写法(默认文档名可略去)

url 参数中的
src=http%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fid%3D25446476659
是一个源 http://item.taobao.com/item.htm?id=25446476659
guang.com/baobei/goto/index.php 需要做一些处理后再转向他,所以没有写成直接跳转

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn