Welcome! Log In Create A New Profile

Advanced

Rewrite rules on multiple sites

Posted by timteka 
Rewrite rules on multiple sites
February 06, 2011 11:55AM
Hi, guruz,
Sorry for newbie question, didn't find the answer on the forum yet.
i have several server names. e.g. [code]
server_name domain.com domain1.com domain2.com domain3.com;
[/code]

How can i redirect all requests with www or without to all possible subdomains to only one?
i.e. request to sub1.domain3.com redirects to domain.com, domain2.com to domain.com, and even www.domain.com to domain.com

thanx in advance
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready