WordPress.org

Ready to get started?Download WordPress

Forums

Simple 301 Redirects
Enabling WP_DEBUG Undefined index 'notice' (2 posts)

  1. Kojichan
    Member
    Posted 1 year ago #

    Notice: Undefined index: HTTPS in /home/user/folder/wp-content/plugins/simple-301-redirects/wp-simple-301-redirects.php on line 143

    Just a quick fix for you, as I was trying to debug something else and I saw this gem pop up.

    Original:

    /*** check for https ***/
    			$protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';

    Replacement:

    /*** Set the base protocol to http ***/
    			$protocol = 'http';
    
    			/*** check for https ***/
    			if ( isset( $_SERVER["HTTPS"] ) && strtolower( $_SERVER["HTTPS"] ) == "on" ) {
        			$protocol .= "s";
    			}

    http://wordpress.org/extend/plugins/simple-301-redirects/

  2. scottnelle
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks! I'll be updating the plugin soon and I'll include a fix for this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic