I am having some problems with the Nginx rewrite algorithm for WordPress.
I am using this for the rewrite and it works good;
server_name www.domain.com domain.com;
if ($host != 'domain.com') {
rewrite ^/(.*) http://domain.com/$1 permanent;
}
it makes this url;
http://domain.com/?author=1
to this;
http://domain.com/author/username/
which is good but with an url like this;
http://domain.com/?author=1&type=like
it makes it;
http://domain.com/author/username/?type=like
and i am not getting any error but the query is not working.
What i am missing?