Welcome! Log In Create A New Profile

Advanced

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

Gabriel Evans
April 12, 2010 02:12AM
Also, see
http://b.lesseverything.com/2008/4/9/redirect-from-www-to-non-www-using-nginxfor
a configuration snippet. It's important to use a 301 redirect, for SEO
purposes.

--
Gabriel Evans
http://gabevans.com/

On Sun, Apr 11, 2010 at 10:49 PM, lhmwzy <lhmwzy@gmail.com> wrote:

> if($host ~* ^www.(.+)$)
> {
> set $sub_name $1;
> rewrite ^ http://$1$request_uri
> }
>
> right?
>
> 2010/4/12 escavern <nginx-forum@nginx.us>:
> > could somebody convert this .htaccess to NGINX rewrite,,??
> >
> > RewriteEngine on
> > RewriteCond %{HTTP_HOST} ^www\.(.+)$
> > RewriteRule ^(.*)$ http://%1/$1
> >
> > i u could,, u're the best !
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,73989,73989#msg-73989
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
> >
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

escavern April 12, 2010 01:39AM

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

lhmwzy April 12, 2010 01:52AM

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

Gabriel Evans April 12, 2010 02:12AM

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

Peter Leonov April 12, 2010 03:28AM

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

Константин April 12, 2010 08:38AM

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

lhmwzy April 12, 2010 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready