I searched a lot on different topics but this problem has not asked yet.
I want to redirect http://examplesite.com/page1 to http://examplesite.com/page2 using .htacess file, if and only if the user is coming to this page from google search engine.
in other words, the user should not be redirected in the below conditions:
if the user is not visiting the page1
if the user is visiting the page1 but http_refere is not equal to google