最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

redirect - Disabling HTTPS redirection for migration

matteradmin5PV0评论

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 badges
Add a comment  | 

2 Answers 2

Reset to default 1

In 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.

Post a comment

comment list (0)

  1. No comments so far