I
I
Ivan Somov2014-03-06 16:10:59
htaccess
Ivan Somov, 2014-03-06 16:10:59

.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

1 answer(s)
I
Ivan Somov, 2014-03-06
@jsom

made in php, the question is removed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question