Rewrite
thinkbot
nginx-forum at nginx.us
Sun Nov 29 21:21:14 MSK 2009
Hello,
I wanted to rewrite this url
rss.xml?type=popular&cid=8
to
/cache/rss/popular_8.xml
so I wrote
location ~* \.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
root /home/site/public_html;
access_log off;
expires 30d;
rewrite ^rss\.xml?type=popular&cid=(.*)$ /cache/rss/popular_8.xml break;
}
But it doesn't work :/
Can anyone help me out with this ? let me know what I'm doing wrong
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,26530,26530#msg-26530
More information about the nginx
mailing list