Welcome! Log In Create A New Profile

Advanced

[ASK] Redirect old domain to new domain

antituhan
January 06, 2011 04:50AM
Hi,

I have an old domain & new domain, let's call the old domain is
www.olddomain.com and the new one is www.newdomain.com.
Yesterday, I've register the new domain (www.newdomain.com), but, the
olddomain.com still active. Both of them can be accessed by user. But, in
some direction (nginx.conf), i've limit the old domain can accessed some
directory, but the new domain can access all directory in public_html.

Could nginx make a rules, if the user access the site from olddomain.com,
for example, the user access a file from www.olddomain.com/file.exe, will be
redirected automatically to www.newdomain.com/file.exe. NginX Wiki doesn't
provide this documentation. :(

Thanks,
antituhan
--
View this message in context: http://nginx.2469901.n2.nabble.com/ASK-Redirect-old-domain-to-new-domain-tp5894964p5894964.html
Sent from the nginx mailing list archive at Nabble.com.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

[ASK] Redirect old domain to new domain

antituhan January 06, 2011 04:50AM

Re: [ASK] Redirect old domain to new domain

Jim Ohlstein January 06, 2011 05:04AM

Re: [ASK] Redirect old domain to new domain

Jim Ohlstein January 06, 2011 05:04AM

Re: [ASK] Redirect old domain to new domain

antituhan January 06, 2011 09:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
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