简体   繁体   中英

Redirect visitor to different domain based on the domain and page they came from

Redirect visitor to different domain based on the domain and page they came from.

Can't find any info on this, or I'm wording it incorrectly. Redirecting visitor to different domain and page if they didn't come from web-page on different Domain.

I'm trying to Redirect users to one of 2 places when user lands on Specific-Page on site. I would like when the page loads, If user did not come from “Site-one.com/page-name” it redirects user to “Site-two.com/page-name-default”

Please help. I just think I'm not wording it correctly.

Thx!

Looking for instruction, as to what direction to go.

You could check the $_SERVER['HTTP_REFERER'] variable and redirect based on that location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM