B
B
boris tyrepharm2017-05-06 18:08:54
Apache HTTP Server
boris tyrepharm, 2017-05-06 18:08:54

How to make a redirect with saving paths?

Hello!
There is a server to which 3 domains are attached: site1.ru, site2.ru and site3.rf
site1.ru - the main domain, has an SSL certificate.
site2.ru and site3.rf do not have an SSL certificate.
It is necessary to configure redirects in such a way that when you click on the links:
site2.ru/main/submain/whatever
site3.rf/main/submain/whatever
, a redirect to the main domain occurs:
https://site1.ru/main/submain/whatever
then is that ways after the domain were saved.
Thanks to!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D3lphi, 2017-05-06
@D3lphi

RewriteEngine On

RewriteRule (.*) https://site1.ru/$1

B
boris tyrepharm, 2017-08-26
@borisevstratov

The issue has not yet been resolved.
Who can help?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question