Answer the question
In order to leave comments, you need to log in
How to take into account transitions in the metric for .htaccess redirect?
Hey!
There is a site ( site1 ) where I redirect traffic from another site ( site2 ) via .htaccess redirect, but there is no and cannot be access to the site1 metric.
How can I set a metric on site2 so that traffic from the domain of site2, which redirects to site1, is taken into account?
Now .htaccess looks like this.
RewriteEngine On
RewriteCond %{HTTP_HOST} сайт2
RewriteRule (.*) сайт1$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
well, hello, add a condition in php
IF HOST THEN
THIS HS IF HOST2 THEN THIS HS all
htccess house does not deal with the model
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question