Additional domains point to the principal in server

0

I have a server that has several domains pointing to it. The fact is that when you add the SSL security certificate to the main domain, some domains now point to the main one, such as link . In this case the additional domain points to a folder but as I have put it leaves the main domain. What I would like is for the additional domain to point to the folder and be displayed without the main domain through.

    
asked by Javier Sánchez 30.10.2018 в 13:48
source

1 answer

0

More or less I have solved the issue, I have changed the rule in the main htaccess: RewriteCond% {ENV: HTTPS}! On [NC] RewriteCond% {SERVER_PORT} 80 RewriteRule ^ (. ) $ link $ 1 [R = 301, L, NE] by: RewriteEngine On RewriteCond% {HTTPS}! = On RewriteRule ^ (. ) $ link {HTTP_HOST} /% {REQUEST_URI} [L, R = 301] But now the problem is that the additional domains come to the end with two backslashes //.

    
answered by 30.10.2018 в 14:18