开发者

IIS 301 Redirect - any way of informing the final site of the original URL

开发者 https://www.devze.com 2023-04-10 20:31 出处:网络
Is there any way of doing a 301 redirect such that the final destination url can ascertain the original URL? E.g.

Is there any way of doing a 301 redirect such that the final destination url can ascertain the original URL? E.g.

Request: www.somesite.com/Page1 -> 301 Redirect -> www.anothersite.com/SectionA/Page1

I'd like the tech at anothersite.com to be able to check the request and 'know' it was redirected here from somesite.com.

UPDATE:

e.g.

Site A => click anchor => Site B (which has moved) => 301 Redirect => Site C

I need, at Site C to know that the Request has been through the redirection process at Site B.

UPDATE 2:

I have no control over the开发者_高级运维 technology that is doing the Redirecting. Thanks for reading.


HTTP is stateless and because the specification doesn't create any specific mechanism to allow the redirectee to understand it has been redirected to you have to assume that clients will create a brand new request.

If you have no control over the redirection I feel this isn't possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号