简体   繁体   English

使用HTTPS时的子域重定向

[英]Subdomain redirect when using HTTPS

My website runs on WooCommerce in public_html. 我的网站在WooCommerce上的public_html上运行。 I have a Subdomain in a public_html/sub. 我在public_html / sub中有一个子域。 When I try to access the sub using HTTPS it seems to redirect to /wp-admin. 当我尝试使用HTTPS访问子程序时,它似乎重定向到了/ wp-admin。 I'm using the default URL rewrites that come with WooCommerce. 我正在使用WooCommerce随附的默认URL重写。 How can I fix this issue? 如何解决此问题?

Look at the Apache Config / Vhosts etc. 查看Apache Config /虚拟主机等。

Basically, search for *:443 in the configuration file (or [ipaddress]:443 if you have fixed IP addresses associated with your server). 基本上,在配置文件中搜索*:443(如果具有与服务器关联的固定IP地址,则搜索[ipaddress]:443)。

This will explain the difference in behaviour. 这将解释行为上的差异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM