Welcome! Log In Create A New Profile


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: 320
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready