Srivi
Srivi

Reputation: 417

wp-admin redirects to home page in my wordpress blog

After I logging in to my wordpress (via wp-login.php) home page is loading instead of admin page (dashboard). I am using wordpress 3.0. How can I fix it ?

Upvotes: 0

Views: 11120

Answers (3)

atomni
atomni

Reputation: 11

If you're using the .htaccess file to remove /index.php, you might have to add an exception for wp-login to your .htaccess file

This is an example I've used to stop this rule for some directories and filetypes (? is for GoDaddy).

    #index.php to /
RewriteCond $1 !^(index\.php|results\.php|images|blog|wp-admin|wp-login|scripts|captcha|styles|css|js|robots\.txt|sitemap\.xml)
RewriteRule ^(.*)$ index.php?/$1 [L]

Upvotes: 1

real estate marketing
real estate marketing

Reputation: 21

I came across a bug in WordPress 3.0 with the wonderful Redirection plugin. When you create a new post/page it will somehow add a redirect that makes the home page redirect to the new post/page. What happens is that it creates a redirect automatically in the Modified posts group. Tools>>Redirection>>Groups>>Modified posts Just delete the redirect that has been created to “/” and it should be fine. This solves the Redirection plugin bug, problem, issue, whatever. This only happens with newly published posts / pages. Hopefully they will fix this awesome WordPress plugin soon.

Upvotes: 2

Gavin
Gavin

Reputation: 2567

If you don't want to get your hands too dirty, this plugin will do it if you enable the Redirection module after installing: http://wordpress.org/extend/plugins/theme-my-login/

Upvotes: 0

Related Questions