The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Still can't fix htaccess issues (4 posts)

  1. webone
    Posted 10 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]

    # 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

  2. webone
    Posted 10 years ago #

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

  3. yosemite
    Posted 10 years ago #

  4. filmn
    Posted 10 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


No tags yet.