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
if ($host ~ (.*)\.abc\.com$) {
rewrite "^/$" /list.php?id=%1 last;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready