remove www from the url

Luit van Drongelen me at luitvd.net
Thu Feb 17 17:49:54 MSK 2011


On Thu, Feb 17, 2011 at 3:47 PM, Edho P Arief <edhoprima at gmail.com> wrote:
> If I remember correctly:
>
> server {
>  server_name www.mysite.com;
>  rewrite ^ $schema://mysite.com$request_uri permanent;
> }


Exactly what I was about to suggest. Seems to me like you do remember correctly.

Regards,
Luit van Drongelen



More information about the nginx mailing list