troubleshooting Question

How to redirect to 2 different pages based on htaccess referrer?

Avatar of jay28lee
jay28lee asked on
Web DevelopmentHTMLApache Web Server
1 Comment1 Solution469 ViewsLast Modified:
For domain mysite.com, I need to setup a .htaccess with rewrite rules such that:

1. only with referrer from "xyz.com" and "mysite.com" can access my content

2. any other referrers from other domain or direct linking without referrer will be redirect to a "coming soon" page.

How can this be done?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros