• Resolved Antony Booker

    (@antonynz)


    There’s a bug in the 404 functionality as it overrides the default WordPress status code on 404 pages with a 200 status code. This is due to the iHomefinderRequestor.php file using the response code from the wp_remote_get request on all pages. So if it responds with 200 all 404 pages will return 200.

    Ideally the plugin should only load on pages that contain the shortcode or to not to have this functionality at all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Antony Booker

    (@antonynz)

    Ended up using the following in the themes function file to ensure a 404 status code is sent and not overridden by the optima express plugin:

    // Ensure 404 pages send 404 status code with Optima Express plugin
    add_action( ‘wp_head’, ‘status_check_404’);
    function status_check_404(){
    if( is_404() ) {
    status_header(404);
    }
    }

    Plugin Author iHomefinder, Inc.

    (@ihomefinder)

    Hello,

    I was able to verify that this is happening, so it does looks to be an issue on our end. Thanks so much for your help and the thorough explanation of your experience. I’ve forwarded this to our engineers for review as well. If they determined it to be a bug, we’ll will provide additional details, as soon as it’s available. If we have any updates or need more information, we will let you know!

    Please feel free to reach out to us at [email protected] for more information.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Returns 200 status code for 404 pages’ is closed to new replies.