English (change)

This how-to guide shows the syntax to point a site or blog to another domain. That way, for instance, traffic from a passive site benefits an active one.
While the purpose may be different, this is the same code used in Part 12 – *USEFULLY* Park A Spare Domain with Nginx.
Open up or create your website’s virtual host configuration file:-
[sniplet guvSellBox]
[sniplet vpsIndexSell]
[text]sudo nano /usr/local/nginx/sites-available/mydomain.com[/text]
If the redirect is the only purpose for the site, delete or comment out anything else, and add this:-
[text]
server {
listen 80;
server_name www.mydomain.org mydomain.org;
rewrite ^/(.*) http://www.mydomain.com/$1 permanent;
}
[/text]
Thassit.
[sniplet vpsIndex]
George November 15th, 2009 at 4:26 pm
Hi Guv, Your guides have been a god send. Thank you.
I need some advice mate, Have you done domain mapping on WPMU? I am on linode and cant get it to work, or more like i dont know how to make it work. The guys are linode arent much help coz it is an unmanaged solution.
I have gotten as far creating a zone for the domain and adding the records in sites-enabled folder for the domain. In the settings the domain is pointing to the root of the wpmudomain.
but the domain redirects to the create new blog signup page when that happens.
any experience with this?
help would be tremendously appreciated. been googling this for two days now..
I have
the_guv January 10th, 2010 at 3:13 am
@George .. er, just saw this .. do apologise. (My bad!)
I guess you are sorted now?