Support » Fixing WordPress » Deactivate WP’s 404 and use server’s default instead

  • Resolved kno

    (@kno)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deactivate WP’s 404 and use server’s default instead’ is closed to new replies.