Page not found error if I put www before the url

May 18, 2019 234 views
Nginx Django Ubuntu 18.04

I’ve a strange problem with my website. If I use enographiae.com I can have access to the site but if I use www.enographiae.com it shown me 404 Not Found nginx/1.14.0 (Ubuntu)

How I can fix it?

1 Answer

You just need to add your www. version in your server_name list and this should fix the issue.

Have another answer? Share your knowledge.