• Resolved firetrucks

    (@firetrucks)


    It doesn’t appear as though there are any options in the settings for this plugin to make a nonexistent page return a 404 HTTP code instead of a 301. I’ve recently made some sweeping changes to my site where hundreds of pages no longer exist; however, search engines are still indexing them even after re-crawling them because this plugin returns a 301 when the crawlers visit. Is there any way to make a 404 error actually return a 404 when it lands on my 404 page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aaron

    (@aaron13100)

    The plugin doesn’t change the response code for 404 pages. It only changes the response code when it actually redirects the user. Try disabling the plugin and testing again.

    • This reply was modified 3 years, 4 months ago by Aaron.
    Thread Starter firetrucks

    (@firetrucks)

    I just assumed that the plugin would change the response code automatically, or that there would be a way to tell the plugin to do so. I ended up attaching an HTTP header to my 404 file that would set the response code to 404, which is resulting in a 301 followed immediately by a 404. It looks like it’s working although it may not be ideal, but will update again if it doesn’t resolve the issue

    Plugin Author Aaron

    (@aaron13100)

    Again I don’t believe the 301 header is caused by the plugin. Because 1) there’s no code for that and 2) I tested it and it doesn’t do that. I’m glad you got your issue worked out though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirecting from a nonexistent page returns 301’ is closed to new replies.