0

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?

1 Answer 1

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.

3
  • but won't the redirect show me wp-admin in the URL?
    – G.G.
    Jun 4, 2012 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, 2012 at 17:30
  • Please post your solution as an answer and accept it
    – shea
    Jan 3, 2013 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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