: .htaccess permanent redirection with condition I want to redirect ONLY users from website1 pages to website2 homepage. The google bot and other crawlers must indexing and do not know about redirection.
I want to redirect ONLY users from website1 pages to website2 homepage. The google bot and other crawlers must indexing and do not know about redirection. Can you help me?
I know how to place the permanent redirect, but how to add a condition to be only for users?
Edited:
I want to redirect the whole website to another one with .htaccess. The redirect must be valid only for visitors without web crawlers and bots. I want the Googlebot and other crawlers to continue indexing and viewing the old website without being redirected.
For example, if I put:
RewriteEngine on
RewriteCond %{http_host} ^www.website1.com [NC,OR]
RewriteCond %{http_host} ^website1.com [NC]
RewriteRule ^(.*)$ website2.com/ [R=301,NC,L]
In the .htaccess file, all visitors from website1 will be redirected to website2 homepage. Robots and search engines will continue to index without being redirected to website2?
More posts by @Deb1703797
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.