Support » Fixing WordPress » Still can’t fix htaccess issues

  • Hi, I still can’t get my htaccess file to work with WordPress using permalinks.

    Here’s my scenario:

    WordPress is installed in root directory, and works fine along with permalinks, however when I try to access a subddirectory ie: (I am redirected to the main page of the blog, and do not receive the password prompt.) Can someone give me 2 complete examples of the htaccess file that should be in root and then let me know if my htaccess file in /test is correct? I’m new and not a coder, so unfortunately, will need to rely on someone who could possibly give me a sample to follow. I think this should be possible to get working, but I’m not technically inclined enough to figure it out on my own. Thank you!

    Here is a copy of my htaccess file in the root directory

    From Root Directory of WordPress site:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    I want to password protect a subdirectory called test so that users are prompted to enter a user name and password when they try to access

    Here is my htaccess file in the subdirectory test:

    AuthType Basic

    AuthName “Restricted Area”

    AuthUserFile “/home/sitename/.htpasswds/test/passwd”

    require valid-user

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Still can’t fix htaccess issues’ is closed to new replies.