Rewrite

Silvio Siefke lists at silvio-siefke.de
Thu Jun 23 03:25:07 MSD 2011


Hello, 

i want rewrite my website Blog Sites.

At moment the Sites are blog.html?id=<number>.

I try to rewrite from article-<number>.html to the site blog.html?id=<number>.

Im not sure i understand the rewrite docu correct, i has the follow lines in
the virtuell Server under location / ,

if (!-f $request_filename) {
 rewrite "^/article-([0-9])\.html$ /blogdetail.html?id=$1" last; 
}


but there i have only 404 in the log. rewrite_log is on, but nothing write me
in the log.

Where is my mistake?

Nice day.


Silvio



More information about the nginx mailing list