admin管理员组文章数量:1026900
I migrated a WordPress 4.3 site from Register to MediaTemple today and found that the forced SSL is causing issues for the staging URL.
In order to try again I have (on the live Register site)
- Disabled plugin 'WordPress HTTPS'
- Removed
define( 'FORCE_SSL_ADMIN', true );
from wp-config - In General Settings replaced https w http for URLs and saved
- Saved permalinks just in case
- verified that .htaccess is not redirecting to https via mod_rewrite
Tried logging out and accessing site and still get redirected from http to https.
Assuming my predecessor has not done anything truly crazy what am I missing there? Where should I look?
I migrated a WordPress 4.3 site from Register to MediaTemple today and found that the forced SSL is causing issues for the staging URL.
In order to try again I have (on the live Register site)
- Disabled plugin 'WordPress HTTPS'
- Removed
define( 'FORCE_SSL_ADMIN', true );
from wp-config - In General Settings replaced https w http for URLs and saved
- Saved permalinks just in case
- verified that .htaccess is not redirecting to https via mod_rewrite
Tried logging out and accessing site and still get redirected from http to https.
Assuming my predecessor has not done anything truly crazy what am I missing there? Where should I look?
Share Improve this question asked Aug 28, 2015 at 22:31 jerrygarciuhjerrygarciuh 1531 gold badge1 silver badge14 bronze badges2 Answers
Reset to default 1In the active theme I found the redirection in header.php
Once commented out the issue was resolved.
if($_SERVER["HTTPS"] != "on")
{
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
exit();
}
I had the same issue after a migration on staging local environnent, I resolved it by emptying the cache with a hard refresh.
I migrated a WordPress 4.3 site from Register to MediaTemple today and found that the forced SSL is causing issues for the staging URL.
In order to try again I have (on the live Register site)
- Disabled plugin 'WordPress HTTPS'
- Removed
define( 'FORCE_SSL_ADMIN', true );
from wp-config - In General Settings replaced https w http for URLs and saved
- Saved permalinks just in case
- verified that .htaccess is not redirecting to https via mod_rewrite
Tried logging out and accessing site and still get redirected from http to https.
Assuming my predecessor has not done anything truly crazy what am I missing there? Where should I look?
I migrated a WordPress 4.3 site from Register to MediaTemple today and found that the forced SSL is causing issues for the staging URL.
In order to try again I have (on the live Register site)
- Disabled plugin 'WordPress HTTPS'
- Removed
define( 'FORCE_SSL_ADMIN', true );
from wp-config - In General Settings replaced https w http for URLs and saved
- Saved permalinks just in case
- verified that .htaccess is not redirecting to https via mod_rewrite
Tried logging out and accessing site and still get redirected from http to https.
Assuming my predecessor has not done anything truly crazy what am I missing there? Where should I look?
Share Improve this question asked Aug 28, 2015 at 22:31 jerrygarciuhjerrygarciuh 1531 gold badge1 silver badge14 bronze badges2 Answers
Reset to default 1In the active theme I found the redirection in header.php
Once commented out the issue was resolved.
if($_SERVER["HTTPS"] != "on")
{
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
exit();
}
I had the same issue after a migration on staging local environnent, I resolved it by emptying the cache with a hard refresh.
本文标签: redirectDisabling HTTPS redirection for migration
版权声明:本文标题:redirect - Disabling HTTPS redirection for migration 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745652298a2161390.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论