A
A
Alex2017-04-05 12:02:33
Apache HTTP Server
Alex, 2017-04-05 12:02:33

How to register a redirect, only for a direct call?

You need to redirect the visitor to another domain, only if he entered the site address manually, and did not go from another.
Those. if the visitor moved, say, from the search to the page
https://example.com/some/page
Then do nothing. And if he entered the address of the same page, or opened it from a bookmark, then redirect him to another domain,
https://another-example.com/some/page
what rule should be written in .htaccess ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Ltonid, 2017-04-05
@AtaZ

Well, you can track the transition from any page through the Refferer header, but you ca
n’t track the open site from the bookmark. This is the same if I type manually for this particular bookmark and were created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question