Take the 2-minute tour ×
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 mu.wordpress.org/forums/topic/11865#post-88451 (last comment) This way I can have mydomain.com/dashboard/ instead of mydomain.com/wp-admin/ –  G.G. Jun 4 '12 at 17:30
    
Please post your solution as an answer and accept it –  bungeshea_ Jan 3 '13 at 10:40

Your Answer

 
discard

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.