Welcome! Log In Create A New Profile

Advanced

Rewrite

November 29, 2009 01:21PM
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
Subject Author Posted

Rewrite

thinkbot November 29, 2009 01:21PM

Re: Rewrite

Igor Sysoev November 29, 2009 03:34PM

Re: Rewrite

thinkbot November 29, 2009 03:53PM

Re: Rewrite

thinkbot November 29, 2009 05:42PM

Re: Rewrite

thinkbot November 29, 2009 05:43PM

Re: Rewrite

thinkbot November 30, 2009 08:52AM

Re: Rewrite

Igor Sysoev November 29, 2009 04:04PM

Re: Rewrite

Maxim Dounin November 29, 2009 05:08PM

Re: Rewrite

Maxim Dounin January 11, 2017 08:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready