E
E
Eduard Kanashevsky2016-08-28 15:09:22
Domain name market
Eduard Kanashevsky, 2016-08-28 15:09:22

How to make a redirect from different domains to different pages of the site?

There is a website with 3 domains like:
test.ru
test-2.ru
test.com
At the moment, 301 redirects are configured on them so that they would send from test.ru and test-2.ru to WWW.test.ru

This is necessary leave it the same, but when you go to test.com, it should open a stub with an inscription from technical work. All within one hosting (not VDS) for one site.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2016-08-28
@gangstarcj

What is the question then? What can't be done? Remove the redirect from Komovsky and put a stub on the index page

K
Kirill Mikhailovich, 2016-08-29
@rollbackTNV

Если в режиме многосайтовости - www.test.ru первый сайт (редиректы оставляй), test.com второй сайт - используй символьные ссылки, https://dev.1c-bitrix.ru/learning/course/?COURSE_I...
Заглушка в при таком варианте ставится в
/bitrix/php_interface/ID_САЙТА/site_closed.php

Виктор Таран, 2016-08-29
@shambler81

RewriteCond %{HTTP_HOST} ^www\.test\.com& [NC]
RewriteRule ^(.*)$ http://%1/info.html [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question