amirabbas
Member
Posted 1 year ago #
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
amosatlantis
Member
Posted 1 year ago #
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>
...
amosatlantis
Member
Posted 1 year ago #
I tried, but get this page called "Internal Server Error"
amosatlantis
Member
Posted 1 year ago #
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.
centurion204
Member
Posted 1 year ago #
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
tammai
Member
Posted 7 months ago #
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! ^_^