Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have this rewrite rule

^dashboard(.*) wp-admin$1 [L] 

and wp redirects me to wp-login.php when I try to visit /dashboard (even if I am logged in)

Any idea why this happen, and how I can solve this issue?

share|improve this question

1 Answer 1

You have to use a redirect not just a rewrite:

^dashboard(.*) wp-admin$1 [L,R=301]

WordPress is using a hard coded search for wp-admin in the request URI.

share|improve this answer
but won't the redirect show me wp-admin in the URL? – G.G. Jun 4 '12 at 17:28
Anyway I solved it. Thanks to this (last comment) This way I can have instead of – G.G. Jun 4 '12 at 17:30
Please post your solution as an answer and accept it – shea Jan 3 '13 at 10:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.