nginx rewrite rule not working?
Posted
by WisdomFusion
on Stack Overflow
See other posts from Stack Overflow
or by WisdomFusion
Published on 2010-03-29T06:13:06Z
Indexed on
2010/03/29
6:23 UTC
Read the original article
Hit count: 334
Hi, all
rewrite ^/index\.asp /index.php last;
rewrite ^/index\.asp\?boardid=([0-9]+)$ /forum-$1-1.html last;
rewrite ^/index\.asp\?boardid=([0-9]+)(.*)$ /forum-$1-1.html last;
rewrite ^/index_([0-9]+)(.*)$ /forum-$1-1.html last;
rewrite ^/dispbbs\.asp\?boardID=([0-9]+)&ID=([0-9]+)$ /thread-$2-1-1.html last;
I have try out rewrite rules above, and get a dead result, not working. I have refer to many posts and articles, and no help.
Is there any mistakes?
V/R, gavin
© Stack Overflow or respective owner