Answer the question
In order to leave comments, you need to log in
How to change the root folder for a subdomain?
There is a file apples.example.com/index.html
There is a link in this file
How do I make this link point to example.com instead of apples.example.com? <a href="/">link</a>
Answer the question
In order to leave comments, you need to log in
Check Referer to see if a link was clicked on apples.example.com/index.html and redirect if it matches:
RewriteCond %{HTTP_REFERER} ^https?://apples\.example\.com/index\.html(?:$|\?)
RewriteRule ^$ http://example.com/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question