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