A
A
Alexey Larionov2019-12-12 11:47:31
Search Engine Optimization
Alexey Larionov, 2019-12-12 11:47:31

Is it possible to redirect from http domain to another https domain (DIFFERENT domains)?

There are two different domains for the same site.
Is it possible to redirect from http domain to another https domain (DIFFERENT domains)?
The domain (additional) has http "name.rf", and the second domain (main) has https "name.ru". Is it possible/can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2019-12-12
@firedragon

Set a 301 redirect

# пример для nginx 
server {
  listen 80 default_server;
  listen [::]:80 default_server;
  server_name _;
        return 301 https://example.org$request_uri;
  # return 301 https://$host$request_uri;
}

P
Pavel Myshkin, 2019-12-12
@Pazys

Of course you can.
Yandex and Google help on this issue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question