Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1516

Apache 2.4 redirect https to another https domain [duplicate]

$
0
0

is it possible to redirect a https domain direct to another https domain without a certificate error?

we try it with a .htaccess and finally within the section.But it doesn't work. We've 2 files, one for the http virtual hosts and one for the https virtual hosts.

We try with <VirtualHost *:80>, with <VirtualHost *:443> and with <VirtualHost *:80 *:443>

<VirtualHost *:80 *:443>    Protocols h2 h2c http/1.1    ServerAdmin hostmaster@exampleA.com    ServerName exampleA.com    ServerAlias *.exampleA.com    RewriteEngine On    RewriteCond %{HTTP_HOST} (.+\.)?exampleA\.com$ [NC]    RewriteRule (.*) https://%1exampleB.com$1 [R=301,L]</VirtualHost> 

thank you in advanced for your help!


Viewing all articles
Browse latest Browse all 1516

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>