there are two solutions:
you have to change nginx.conf Try_files directs all requests to index
first of index.php get the url and return require_once('contact.php')