Welcome! Log In Create A New Profile

Advanced

Rewrite to Podtrac URL with $ in URL

Posted by Russell Mann 
Rewrite to Podtrac URL with $ in URL
May 02, 2012 06:44PM
Hello,

I need to redirect a podcast URL to the Podtrac.com URL, which includes a $ at the end. Example:

rewrite ^/podcast.php "http://feeds.podtrac.com/xxxxx$" permanent;

Nginx feels that this is a variable and kicks this error:

nginx: [emerg] invalid variable name in /etc/nginx/conf.d/default.conf:21

Quoting the URL, escaping the $ with a backslash, etc. do not help. I even tried to set a variable with the contents of "$" and use it, but to no avail.

Any suggestions on how to make this work?

Thanks,

Russell
Re: Rewrite to Podtrac URL with $ in URL
May 03, 2012 04:12PM
Podtrac got the answer to me. Posting here in case it helps anyone in the future. Encode the $. %24

Derp.
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: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready