Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7924829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:57:48+00:00 2026-06-03T17:57:48+00:00

how do I need to set up the .htaccess file to correctly send 404

  • 0

how do I need to set up the .htaccess file to correctly send 404 error pages on the following scenario

www.example.com - main site have a WP installation
www.example.com/folder-a/ - second WP installation
www.example.com/folder-b/ - third WP installation

All them share a same database (different prefix).

My question is how do I need to set up .htaccess on each installation to send a correct 404 error page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:57:51+00:00Added an answer on June 3, 2026 at 5:57 pm

    Whilst a 404 error page does not send the visitor to the exact page they want, it does point them in the right direction and it means they are more likely to stay on your site.

    Once you have your 404 page setup, all you need to do is send visitors to incorrect url’s to this page. To do this just add the following line to your .htaccess file :

    ErrorDocument 404 /404.php
    

    You can place the 404 error template anywhere you want. For example you could place all error messages in a folder called errormessages

        ErrorDocument 404 /errormessages/404.php 
    

    You can do this for each .htaccess on each installation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have my htaccess file set to remove the file type so www.example.com/home.php
Question: What ruleset do I need to do the following redirects: [1] http://www.xyzblog.com/foo/bar.php =>
I had the following rewriting set up in my .htaccess file: RewriteRule ^(\w+)/?$ profile.php?customURL=$1
I need to set https on certain pages. To do this, in my .htaccess
in the root directory of my webapp, the .htaccess file contains the following line:
I'm following a tutorial on Zend Framework here (http://www.ibm.com/developerworks/opensource/tutorials/os-php-zend2/section2.html). I barely got started, but
I may need to modify our .htaccess file. Problem is I can't find it.
I have the following .htaccess rewriting urls such as url.com/category/page and url.com/page and then
My site is set up with htaccess directing all pages from html to php
I'm using the following line in my htaccess to set the expiration of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.