abort rewrite help
August 01, 2009 02:46AM
I have a url http://www.abc.com/list.php?id=123456


Now ,I want rewrite to http://123456.abc.com

how to ?
this is my conf code
[code]
if ($host ~ (.*)\.abc\.com$) {
rewrite "^/$" /list.php?id=%1 last;
}
[/code]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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