• shounakgupte

    (@shounakgupte)


    Hi. I installed by blog on my site a few months back and now i am trying to password protect some of my other directories of the site with .htaccess. During installation, wordpress wrote the following lines in my .htaccess file

    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

    The password protect doesnt work if these lines are there in the file. If I remove these files, the password protect does work but none of my pages on the blog open.

    Does anyone have a workaround this problem? Any help is highly appritiated!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    There shouldn’t be any clash here. If you want to password protect directory foo, you need to place a new .htaccess file in the foo directory. You don’t change the WP or root .htaccess file.

    Thread Starter shounakgupte

    (@shounakgupte)

    i am doing the password protection through my hosting company using cpanel. not sure where it places the new file.

    can i check it using ftp?

    Thread Starter shounakgupte

    (@shounakgupte)

    hi esmi. the new .htaccess files are under the respective directories.

    Thread Starter shounakgupte

    (@shounakgupte)

    any help?

    Thread Starter shounakgupte

    (@shounakgupte)

    any solutions?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘.htaccess error’ is closed to new replies.