Welcome! Log In Create A New Profile

Advanced

A question of URL rewrite

December 09, 2009 09:08PM
Hi,

I hope to rewrite sin.jsp?code=111&x=2 to sin/111.htm
I tried the two ways below but it is still failed. Please help me out. Thanks very much!

[code]
rewrite "^/sin.jsp?code=([0-9]+)&x=([0-9]+)$" /sin/$1.htm last;

rewrite "^/sin\.jsp\?code=([0-9]+)&x=([0-9]+)$" /sin/$1.htm last;
[/code]
Subject Author Posted

A question of URL rewrite

rayallenwu December 09, 2009 09:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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