Welcome! Log In Create A New Profile

Advanced

Rewrite for subdomain

January 07, 2012 02:11PM
I want to set a rewrite rule for redirection of search.php?q=word to word.domain.com
I used the following rule but did not work.

rewrite ^(.*).$server_name /search.php?q=$1 permanent;
Subject Author Posted

Rewrite for subdomain

etrader January 07, 2012 02:11PM

Re: Rewrite for subdomain

António P. P. Almeida January 07, 2012 05:52PM

Re: Rewrite for subdomain

Edho Arief January 07, 2012 06:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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