I have the following line in nginx:
try_files $uri $uri/ /index.html;
As far as I understand, it rewrites all queries to files that are not found to
idontexist.html?foo=bar leave the same result which screws up Google crawling.
How can I not rewrite but redirect to the default url?
The perfect solution would be even without the
http://domain.com/idontexist.html?foo=bar would redirect using 301 to