Trouble with .htacess redirection
Posted
by
mike23
on Pro Webmasters
See other posts from Pro Webmasters
or by mike23
Published on 2011-05-22T12:51:31Z
Indexed on
2011/06/22
16:30 UTC
Read the original article
Hit count: 267
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
?
© Pro Webmasters or respective owner