Trouble with .htacess redirection
- by mike23
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 ?