Redirect all www-prefixed requests to non-www in Nginx
Redirecting all www-prefixed requests to a non-www address in Nginx is easy with this catch-all configuration.
Redirecting all www-prefixed requests to a non-www address in Nginx is easy with this catch-all configuration.
Every website should be accessible by using addresses like example.com and www.example.com. On the other hand you should never have a duplicate content by serving the same content on different URLs. Because of these UX and SEO principles it’s best practice to create a permanent redirection from www.example.com to example.com or vice versa. When hosting a static website with AWS S3 and … Read more