could somebody convert this .htaccess to NGINX rewrite,,?
Peter Leonov
gojpeg at gmail.com
Mon Apr 12 11:24:25 MSD 2010
On 12.04.2010, at 9:39, escavern wrote:
> could somebody convert this .htaccess to NGINX rewrite,,??
>
> RewriteEngine on
> RewriteCond %{HTTP_HOST} ^www\.(.+)$
> RewriteRule ^(.*)$ http://%1/$1
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.
More information about the nginx
mailing list