I use this redirect rule to redirect users from www.domain.com/admin to www.domain.com/wp-admin on a WordPress site.

RedirectMatch 301 \@admin http://www.domain.com/wp-admin

The problem is that instead redirecting to wp-admin/, it redirects to an article called Administrators are awesome people (slug : administrators-are-awesome-people)

I can guess what is going on, WP sees that there is an article slug starting with "admin", and redirects to it, overruling my own rule.

Is there a way to be more specific, like saying "redirect urls that end with exactly admin ?


1 Answer 1


Try this

 RewriteRule ^admin?$ "http\:\/\/www\.domain\.com\/wp-admin\/" [R=301,L]

Your Answer

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