WordPress.org

Ready to get started?Download WordPress

Forums

Still can't fix htaccess issues (4 posts)

  1. webone
    Member
    Posted 8 years ago #

    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: http://www.sitename.com/test (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]
    </IfModule>

    # 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

    http://www.sitename.com/test

    Here is my htaccess file in the subdirectory test:

    AuthType Basic

    AuthName "Restricted Area"

    AuthUserFile "/home/sitename/.htpasswds/test/passwd"

    require valid-user

  2. webone
    Member
    Posted 8 years ago #

    Is there anyone who could give me a suggestion on how to fix the htaccess file?

  3. yosemite
    Member
    Posted 8 years ago #

  4. filmn
    Member
    Posted 8 years ago #

    yeh you wana set ure .htaccess file to CHMOD 666.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.