The site has long been available under the domain https://site.ru , now, I decided to use the international domain and attached to the site a new domain https://site.com

Now from the old domain there is a 301-redirect of all pages to the new domain:

RewriteEngine On RewriteCond %{REQUEST_URI} (.*) RewriteCond %{HTTP_HOST} ^www\.(.*)$ RewriteRule ^(.*)$ https://site.com/$1 [L,R=301] 

For the old domain, an SSL certificate was installed, and the site was indexed in search engines as https://site.ru - now the old certificate is expired and is no longer valid. And on the new domain I installed a new SSL.

When the link without HTTPS pass: site. ru / page / 1 redirects to the site. com / page / 1

And when people come to the site through search engines the link is this: https://site.ru/page/1 and the redirect does not occur, but gives an SSL error (The connection is not secure).

How to solve this issue?

  • one
    Solution one is to generate a certificate for site.ru! - nörbörnën
  • @norbornen in the sense for site.ru need to install SSL? - Maqsood
  • @Maqsood yes. . - andreymal

0