Page 2 of 2

Re: How to remove www?

Posted: Sat May 19, 2018 11:59 am
by rachid1010
If you use nginx, you can configure your site like that to redirect

Code: Select all

server {
    listen       80;
    server_name  domain.com www.domain.com;
    return       301 https://domain.com$request_uri;
}