I want to setup simpler urls in nginx to login into wordpress i.e. /admin /login in nginx
I have tried multiple ways of tackling this with no luck. any ideas?
currently working with this, but I know it's not working
if ($uri ~* "/login") {
rewrite ^(.*)$ http://$host/wp-admin/;
}
Final Working Version:
if ($uri ~* "/login") {
rewrite ^/login(/.*)? /wp-admin$1;
}
Rewriting works largely the same as in Apache, but with different syntax:
http://wiki.nginx.org/HttpRewriteModule
Something like this should do the trick: