Answer the question
In order to leave comments, you need to log in
"And not =" rule for RewriteCond?
Requirements:
Condition = traffic source is "equal to" google and user agent is "not equal": googlebot If the condition is true, then from page "A"
we
make a "301 redirect" to page "B"
, and by default page "A" receives a response code of "200".
Now works with "traffic source is equal to google":
RewriteCond %{HTTP_REFERER} ^(.*)\.google\.(.*) [NC]
RewriteRule ^(.*)/super-puper/$ https://example.org/?refcode=z910027635c38753 [L,R]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{HTTP_REFERER} ^(.*)\.google\.(.*) [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*googlebot.*$ [NC]
RewriteRule ^(.*)/super-puper/$ https://example.org/?refcode=z910027635c38753 [L,R]
!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question