ys2843 edited a comment on pull request #18738: URL: https://github.com/apache/incubator-mxnet/pull/18738#issuecomment-660381271
> Not sure, but this didn't work: http://ec2-34-219-134-42.us-west-2.compute.amazonaws.com/community/contribute.html > Shouldn't the dropdown read 1.6 if the redirect worked? > > You can use the beta site for testing redirects. It's perfect for this kind of testing. > https://github.com/apache/incubator-mxnet-site/tree/beta-site I will add more clarification about this PR. The redirect test in this PR is described below Start: http://ec2-34-219-134-42.us-west-2.compute.amazonaws.com/versions/1.1.0/community/contribute.html To: http://ec2-34-219-134-42.us-west-2.compute.amazonaws.com/versions/1.6/community/contribute.html The redirect only takes effect when user visit `/versions/1.1.0/community/contribute.html` from outside of mxnet website. It could be from a google search result, or type this url into the browser directly. We get this info by checking whether HTTP request header `referer` is "apache.mxnet.org" or not. This is the behavior that I would like to verify on mxnet website server, it works well on preview host. And to prevent redirect looping, if user goes to `/versions/1.1.0` => top nav bar => community => contribute, this also goes to contribution page but redirect won't be triggered because user is coming from mxnet website. It looks like this beta git repo is too large to clone... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org