Forums

htaccess protected dir (cpanel) and WP (2 posts)

  1. dragon2611
    Member
    Posted 2 years ago #

    I seem to be having trouble with my wordpress blog and directorys that are passworded via cpanel (Basically it just creates a .htaccess and .htpassword)

    My blog is at the sites root, if i create a directory /files for instance and use no protection it works fine, if I visit the url I get the /files dir as expected.

    If I go into cpanel and set the options to use a password on /files (it just creates a .htaccess in the folder and a .htpasswrd file in /home/username/.htpasswd/dirname/passwd then instead of the expected password prompt when visitnig the /files dir i'd get a 404 page from wordpress instead.

    I have the WP-supercache and "all in one SEO pack" loaded on wordpress 2.82 if that helps diagnose....

    I assume it's possibly some kind of rewrite rule messing with something somewhere so that it doesn't correctly find the dir once it's been protected with a .htaccess and .htpasswd?

    Any assistance on how to resolve however would be much appreciated.

  2. hedonplay
    Member
    Posted 2 years ago #

    I just have an idea which is not tested.

    Could you try to add the rewrite rule in the new .htaccess which is in the protected directory /files ?

Topic Closed

This topic has been closed to new replies.

About this Topic