I have been trying to add www to my domain like this:
I was following this article here: https://www.digitalocean.com/community/articles/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx
but ended up with no result. I believe it is something related to either ect/nginx/nginx.config or my domain file in sites-available…
There is one question I also want to ask, if the domain re-directed from http://domain.com to http://www.domain.com, would that be considered an extra http request. is there a way how to avoid extra requests?
any idea how that can go correct??
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!