1
votes

I know this question is asked many times here. But none of the answers solved my problem.

When I try to log-in to my site through wordpress-admin, like this, mysite.com/wp-admin it gives me the error "This webpage has a redirect loop". But when I try mysite.com/wp-admin/index.php, It works fine.

  1. one conclusion I came to, is, there is no problem with plugins. I tried changing the plugins directory name. It doesn't work.

  2. I tried changing file permissions. It doesn't work.

  3. Added the following code to .htaccess file

    RewriteBase /
    RewriteRule  /wp-admin/ /wp-admin/index\.php [L,P]
    

It too doesn't work for me.

Please help me. What else can I do? Can anyone give me suggestions?

2
codex.wordpress.org/WP_DEBUG add code see whats the issue there. - Ravi Patel
Change the theme to TwentyTwelve, does it still happen? Is there any mu-plugins in wp-content folder? - brasofilo
@brasofilo , even When I disable all the plugins, the problem persists. - raghuveer999

2 Answers

1
votes

insert this code in your functions.php file

 function admin_default_page() {
 return 'http://staging.bestbodybootcamp.com/wp-admin/index.php';
 }

 add_filter('login_redirect', 'admin_default_page');
0
votes

you have not specify what is your permalink setting is 'Post name' or default, if it is default or any else please change to post name