I
I
ih8u2021-03-17 19:48:50
htaccess
ih8u, 2021-03-17 19:48:50

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

1 answer(s)
V
Viktor Taran, 2021-03-18
@shambler81

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 question

Ask a Question

731 491 924 answers to any question