A
A
Alena Nechaeva2018-10-04 21:57:10
Apache HTTP Server
Alena Nechaeva, 2018-10-04 21:57:10

How to set up a redirect from https://site.com to https://site.ru?

Redirect is registered in htaccess:
1. from site.ru to https://site.ru
2. from site.com to https://site.ru
How to redirect also from https://site.com to https:/ /site.ru ?

Here, in general, a real screenshot of what is at the moment.
But the redirect from https://oberteich.com to https://oberteich.ru still doesn't work.

5bb672361e93f264872601.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Lyskov, 2018-10-04
@anechaeva

RewriteCond %{SERVER_PORT} !^443
RewriteRule (.*) https://site.ru/$1 [R=301,L]

something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question