June 22, 2009 05:39AM
On Mon, Jun 22, 2009 at 01:37:40AM -0400, leakhina wrote:

> Hi everyone,
>
> I'm very new with Nginx, and now I want to use Nginx to generate new url from the url user passed.
> Example:
> User type to browser like http://us.domain.com, and I want Nginx generates to http://www.domain.com/?portal=us or http://domain.com/?portal=us.
>
> How can I rewrite the nginx to do this?

Do you mean redirect sent to client ?


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

How to generate url with sub domain to new url with query string?

leakhina June 22, 2009 01:37AM

Re: How to generate url with sub domain to new url with query string?

Igor Sysoev June 22, 2009 05:39AM

Re: How to generate url with sub domain to new url with query string?

leakhina June 22, 2009 06:22AM

Re: How to generate url with sub domain to new url with query string?

edogawaconan June 22, 2009 08:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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