WordPress.org

Forums

404 Redirected
Core behavior of page/?p=n breaks giving 404 error (2 posts)

  1. Graham Stoney
    Member
    Posted 3 years ago #

    Thanks for 404 Redirected; it looks like a great plugin for handling 404 errors automatically. However, I've noticed it breaks a subtle feature of the WordPress core which I need on my blog:

    Firstly, I have a sales page on my site at:
    http://confidentman.net/confident-man-ebook

    I want to be able to add a parameter on the end of this which redirects WordPress to another post instead, so ClickBank affiliates can create affiliate links to any post on my site.

    Without 404 Redirected, a link like this:
    http://confidentman.net/confident-man-ebook/?p=112

    ... is redirected by WordPress to the specified post the same as:
    http://confidentman.net/?p=112

    ... which ends up showing:
    http://confidentman.net/dating/successful-speed-dating

    In other words, the post specified with the p parameter appears to override the page specified in the URL; which is exactly what I want.

    But with 404 Redirected enabled on my site I get a 404 error instead.

    I came across a similar problem using Smart 404 which I reported here, but Smart 404's author doesn't appear to be active any more so I'd like to switch to 404 Redirected... if I can get this problem resolved.

    Anyone have any clues as to how to fix this please?

    Thanks,
    Graham

    http://wordpress.org/extend/plugins/404-redirected/

  2. Graham Stoney
    Member
    Posted 3 years ago #

    Hmmm... I've just noticed that it doesn't always give a 404. Sometimes it just ignores the p= parameter. Either way, it's changing the default WordPress behavior. Any ideas?

    Thanks, Graham

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • 404 Redirected
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic