# NGINX configuration file for the website server { listen 80; root /var/www/syndamiadotcom/website; index index.html; server_name www.syndamia.com; # This removes .html extension from url (https://stackoverflow.com/a/38238001/12036073) location / { if ($request_uri ~ ^/(.*)\.html$) { return 302 /$1; } try_files $uri $uri.html $uri/ =404; } }