Support » Fixing WordPress » problem with wp-admin password and mod rewrite

  • hi friends

    im using wordpress 2.6
    i want to set password on wp-admin directory through Cpanel by .htaccess and .htpasswd for increasing security of wordpress

    unfortunately it doesn’t work. when permalink rewrite rules are active, i can not go to wp-admin directory and i redirect to 404 error page. when i remove the root htaccess file, then i can go to wp-admin directory and i can see the apache login popup window.

    its the rules in my .htaccess root file

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

    thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • hi

    i got the same problem like you.

    when i remove the :

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

    rules than i can access my wp-admin directory. otherwise, it would just bring me to an error page.

    Try to add

    Option +FollowSymLinks

    as follows:

    # BEGIN WordPress
    Option +FollowSymLinks
    <IfModule mod_rewrite.c>
    ...

    I tried, but get this page called “Internal Server Error”

    you can visit my blog at http://www.amosatlantis.com/wp-admin/

    it redirects you to a non-exisiting page which i’ve setup.

    i think wordpress thinks that the /wp-admin directory is a permalink which doesn’t exist ?

    I’ve missed the “s” it should be:
    Options +FollowSymLinks

    Sorry.

    Hi friends,

    (Sorry for my bad English because I’m French)

    I got the same problem like you.

    I tried to add the line Options +FollowSymLinks in the .htaccess root file but there is no effect : The apache login window doesn’t appear.

    I hope somebody could help us

    Hi, i have same problem like you. After googled I found a tip to fix it. Add ErrorDocument 401 default into .htaccess in wp-admin, it work for me. You can read more in this blog. Good luck! ^_^

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘problem with wp-admin password and mod rewrite’ is closed to new replies.