could somebody convert this .htaccess to NGINX rewrite,,?

lhmwzy lhmwzy at gmail.com
Mon Apr 12 16:38:29 MSD 2010


This maybe the best.

>
> Could you please try this:
>
> server
> {
>  server_name ~^www\.(.+)$;
>  set $name $1;
>  rewrite ^ http://$name$uri? permanent;
> }
>
>>
>> i u could,, u're the best !
>
> Best regards,
> Peter.
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list