Welcome! Log In Create A New Profile


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;

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: 291
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