How to set a subdirectory site for site-wide 404 page?

I have an MU network based on the domain. When you go to, it automatically takes you to the main info site, which is When you go to, you go to the Computing Unplugged site.

But when you go to a site that doesn’t exist, or a page that doesn’t exist (like, it takes you to the base

What I’d like to do is either (a) have a failed request always go to the page-not-found page of or just to the main, regardless of what the failed request requests.

Can I do this, and how?



  • aecnu
    • WP Unicorn

    Greetings David,

    Thank you for this great question.

    The answer is the htaccess file, put these on top with your preferred URL:

    ErrorDocument 404
    ErrorDocument 400
    ErrorDocument 401
    ErrorDocument 403
    ErrorDocument 500

    It makes no difference if your page extension is php or htm/html

    That should do the job for you.

    Cheers, Joe

  • aecnu
    • WP Unicorn

    Greetings David,

    Thank you for the additional question which is certainly appreciated.

    I have never seen WordPress change a htaccess in that way even during an update because it usually sticks to only messing with stuff between the WordPress begin and WordPress end indicators.

    However, to answer the question directly regarding placing these else where, they would be placed in the httpd.conf file :smiley:

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.