• Resolved chuckzwood

    (@chuckzwood)


    Sorry for the title, not sure how to describe this issue in few words.

    I have a sales site (has shopping cart) installed in the “/proofs” directory of my site. My hosting company told me to password protect its subdirectory “admin” for security reasons, which I did and have had no problems with it until two days ago.

    I have WordPress installed in its own directory “/adp”, but have the index file in the root. These two sites, WP and sales, are completely separate — separate files, separate directories, separate data bases.

    Beginning two days ago, when I go to the link to login to the sales site (which is in the “admin” subdirectory), instead of the popup window prompting me for a user/password, it redirects me to a 404 page of my WordPress site. If the “admin” directory password is removed, I am able to access the login of the sales site.

    Through trouble shooting, it has been found that the permalinks on the WP site is causing this issue. If ANYTHING except the default permalinks are used, I get the WP 404 page. If the default permalinks are in use, I get the correct pop-up window for the “admin” directory login.

    Any ideas of how to fix this problem???

    Thank you very much!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s a little more complicated for you because you are using subfolders for WP and for your proofs install, but there is an easy workaround. You might have to experiment a bit with the placement of the files to make it work for you.

    The usual situation is a WP install in the root directory with a password-protected subfolder containing something else. In that situation, the fix is as follows:

    1. In the password-protected folder’s .htaccess file, place the following:
      ErrorDocument 401 /401.html
    2. Next, create a 401.html file in the root folder with any content; e.g., “PASSWORD PROTECTED FOLDER – Please enter the correct username/password.”

    The source of the problem is supposedly something in Apache, and these changes will solve it.

    Thread Starter chuckzwood

    (@chuckzwood)

    That worked — PERFECTLY!!!!!!!!!!!!!

    Thank you, thank you, thank you!!!!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP 404 When Logging In to Non-Related Site’ is closed to new replies.