直接链接和重定向之间有什么区别?
我正在查看一个 API: https://remoteok.io/api?ref=producthunt
他们说:
[{"legal":"By using Remote OK's API feed you legally agree to mention Remote OK as a source and link back to the job listing URL on Remote OK with a DIRECT link, no redirects please.
我不确定我可以使用直接链接但不能使用重定向是什么意思。它们不是同一个东西吗?
最佳答案
在外部链接(从您的网站到其他人的网站)时,通常的做法是先链接到您自己的网站(以便您知道有多少用户点击了该链接),然后重定向到外部网站。
指向 example.com 的直接链接如下所示:
<a href="example.com">example.com</a>
指向 example.com 的间接链接如下所示:
<a href="bit.ly/2yHIefP">example.com</a>
关于redirect - 直接链接与重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61401341/