This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Password protected pages display the 404 page

Resolved 2 replies premiumthemetheme-vantage
10 years ago · Last reply by Greg Zinn 10 years ago

Here is the site in question, it mostly works fine: http://www.scsrealestateservices.com/

I have a test page here: www.scsrealestateservices.com/custom/input.php (it just displays “12345 hi”, that’s normal)

I have another test page here, but this time the directory is password protected: http://www.scsrealestateservices.com/custom2/input.php

When I use cPanel to make a directory (such as /custom2/) password protected, the page I am trying to visit does not ask for a password. Instead, it displays the website’s 404 page.

URL: http://www.scsrealestateservices.com/custom2/input.php

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Magus Staff 10 years, 7 months ago

    Hi Greg

    Please try this.

    Create a file on your website. Call it onerror.html. It can have just in it.
    In WordPress’s .htaccess file, add this to the top of the file:

    ErrorDocument 401 /path/to/onerror.html

    See if that makes any difference. If it doesn’t, add another line with 403 instead of 401.

    This is a known issue when using password protected directories on linux servers

    Let us know how you get on

    Magus

  2. Greg Zinn 10 years, 7 months ago

    Thank you! The issue is resolved after I created onerror.html and added this line to the top of the htaccess file:

    ErrorDocument 401 /onerror.html

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread