Answer the question
In order to leave comments, you need to log in
.htaccess. how to cut off a piece of the url on the landing page?
There
is a domen1, it has a website, it has a landing
page domen1/landing.
Everything needs to be implemented through .htaccess on the domain1 server.
Moreover, during the transition, the user's link was of the form http://domen2, (without /landing ).
Now it’s done like this, while the tail is not sawn off, the link looks like domn2.ru/landing
RewriteCond %{HTTP_HOST} domen2\.ru$ [NC]
RewriteRule ^$ http://domen2.ru/landing [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question