Rewrite

Silvio Siefke siefke_listen at web.de
Fri Apr 20 01:23:15 UTC 2012


Hello,

On Fri, 20 Apr 2012 06:56:51 +0700
Edho Arief <edho at myconan.net> wrote:

> 1. you forgot to put ~ for regex match
> 2. the one you want is rewrite/return, not try_files
> 
> something like this may work:
> 
> location ~ ^/article-(\d+)\.php$ {
>   rewrite ^ /post.php?id=$1 last;
> }


Ok i have it do, but the result is same, File not found.

The config complete: http://nopaste.info/af7861f553.html


Regards
Silvio



More information about the nginx mailing list