nginx rewrite issue
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;
to this;
which is good but with an url like this;
it makes it;
and i am not getting any error but the query is not working.
what i am missing?
thanks.
1 Reply
try_files $uri $uri/ /index.php?q=$uri&$args;