Wordpress Admin Login Prob

Discussion in 'WordPress' started by netgeek, Aug 22, 2013.

  1. #1
    Hi guys,

    I been trying to login using " mysite.com/wp-admin " and it is redirecting me to mysite.com/wp-login.php?redirect_to=http%3A%2F%2Fmysite.com%2Fwp-admin%2F&reauth=1

    Can anyone help me how do i sort out this issue,

    Thanks in advance
     
    netgeek, Aug 22, 2013 IP
  2. netgeek

    netgeek Well-Known Member

    Messages:
    174
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    123
    #2
    Okay, this problem has been sorted. And i have spent whole day for sorting out this simple problem.

    Not sure how many of you guys been facing this problem, I DON'T WANT YOU GUYS TO FACE THE SAME :) and i been trying for a solution all over google. Many suggested me to uninstall theme, delete files and upload again,delete plugins and so on. But here is something which you have to do instead of doing all those things.

    Here it goes like this,

    Step 1 :- Go to your cpanel

    Step 2 :- Click on filemanager and choose the site which you facing problem.

    Note :- Make sure you tick on " Show hidden files " { If you won't do this, you won't see .htaccess file }

    Step 3 :- Go to .htaccess file and then click on edit

    Step 4 :- Just replace this below code with existing one.

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    # END WordPress

    That's all folks :), Please don't waste a day or change theme or delete any files or any other like me.

    If you are still facing the same problem, then i don't know !! May must have to struggle 2 or 3 more days :)
     
    netgeek, Aug 22, 2013 IP