• I run a WP 3.0 installation at mydomain.com and wanted to add a protected folder (password protected using .htaccess) at mydomain.com/admin/

    Also, it’s HTTPS secure, if that matters at all, though maybe it doesn’t since I tried regular too and it doesn’t work. https://mydomain.com/admin

    Inside the admin/ folder I setup my .htaccess file for protection and make the .htpasswd file:

    —————————————–
    AuthName “Restricted Area”
    AuthType Basic
    AuthUserFile /home/my-correct-path/.htpasswd
    AuthGroupFile /dev/null
    require valid-user
    —————————————–

    But when I go to the https://mydomain.com/admin/admin.php
    I get a 404 error page from WordPress.

    Note that I’m running the admin.php file as a regular PHP file, NOT as part of WordPress. So it doesn’t use any WordPress elements, it’s a plain PHP file.

    Why am I getting an error 404?

    Thanks for any help you can offer

Viewing 1 replies (of 1 total)
  • Thread Starter ppgear

    (@ppgear)

    Not to be a jerk, but the lack of response in this support forum has been somewhat disappointing ??

Viewing 1 replies (of 1 total)
  • The topic ‘Subdirectory protection with .htaccess doesn't work’ is closed to new replies.