WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Deactivate WP's 404 and use server's default instead (3 posts)

  1. kno
    Member
    Posted 6 years ago #

    Hey there,

    really the topic says it all. I'm running WP on a server with my already-customized own error documents and would like wordpress not to interfere with that.

    Yes, I know I could also just edit WP's 404, but I'd prefer to only have one thing for one task.

  2. kno
    Member
    Posted 6 years ago #

    Okay, figured it out; It's simply not possible :)

    If anyone experiences the same problem here's why: Since WordPress internally rewrites all URLs and also does some magic detection stuff there there's just no chance to let Apache know if the request will result in a 404 or not, thus the only option is to use the WP-internal 404-errorpage.

    This is not a WordPress-Flaw, it's much more a technical restriction one has to deal with and as long as URIs are being dynamically rewritten to map "physically non-existant" URLs only the last one in the chain, the one doing the rewrites, can find out if there is content or not.

  3. hakre
    Member
    Posted 6 years ago #

    Some themes do support a 404 error template. So you can have your own modified 404 error pages if you like with wordpress.

Topic Closed

This topic has been closed to new replies.

About this Topic