Welcome! Log In Create A New Profile


Regex for rewrite of subdomains

All files from this thread

File NameFile Size Posted byDate 
smime.p7s6 KBopen | downloadGreenGecko02/14/2013Read message
February 14, 2013 05:05PM
I want to rewrite subdomains by adding a separate server for subdomains as

server {
server_name domain.com
server {
server_name *.domain.com

but how I can I ass a rewrite rule int the second server to process subdomain requests as

keyword.domain.com/query=some to domain.com/script.php?query=some&sub=keyword

Regex for rewrite of subdomains

etraderFebruary 14, 2013 05:05PM

Re: Regex for rewrite of subdomains Attachments

GreenGeckoFebruary 14, 2013 05:52PM

Re: Regex for rewrite of subdomains

Darren PilgrimFebruary 15, 2013 12:50AM

Re: Regex for rewrite of subdomains

Igor SysoevFebruary 15, 2013 01:22AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 5 on August 04, 2015
Record Number of Guests: 244 on October 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready