301 Redirect Domain

Edho P Arief edhoprima at gmail.com
Tue May 26 00:45:24 MSD 2009

On Tue, May 26, 2009 at 3:30 AM, Chris Wilson <lists at ruby-forum.com> wrote:
> Is there a way to redirect and old domain to a new one,
> For instance, all I did was change domains, the structure is all still
> the same.
> I just need to redirect xxxx.com to xxxy.com while still keeping the
> structure of the incoming links as they remain in the same pace on the
> new site.
> --
> Posted via http://www.ruby-forum.com/.

something like this?

server {
       listen                          <ipaddress/port>;
       server_name                             oldadress.com;
       rewrite         ^(.*)$  http://newaddress.com$1 permanent;

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

More information about the nginx mailing list