<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Nginx permanent rewrite issues</title>
<description>We have some old URL's all over our website in the following format that we are trying to just redirect to the home page as they are giving page cannot be found errors:

http://www.oursite.com/go/base?id=XXX (XXX is a different set of letters in each URL and there are hundreds of them)

How would I go about redirecting something like this to the home page. I've tried this so far:

rewrite ^/go/.*$ http://www.oursite.com/ permanent;


This kind of works, but it redirects to the home page like this:

http://www.oursite.com/?id=XXX (we don't want it to show the ?id=XXX)

Any input is greatly appreciated.</description><link>http://forum.nginx.org/read.php?9,222799,222799#msg-222799</link><lastBuildDate>Sat, 25 May 2013 23:09:25 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?9,222799,222808#msg-222808</guid>
<title>Re: Nginx permanent rewrite issues</title><link>http://forum.nginx.org/read.php?9,222799,222808#msg-222808</link><description><![CDATA[Figured this out for anybody that comes across this. I changed the rewrite line to this:<br /><br />rewrite ^/go/.*$ /? permanent;<br /><br />Now it redirects to www.oursite.com]]></description>
<dc:creator>jelson41</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 21 Feb 2012 15:22:15 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,222799,222799#msg-222799</guid>
<title>Nginx permanent rewrite issues</title><link>http://forum.nginx.org/read.php?9,222799,222799#msg-222799</link><description><![CDATA[We have some old URL's all over our website in the following format that we are trying to just redirect to the home page as they are giving page cannot be found errors:<br /><br />http://www.oursite.com/go/base?id=XXX (XXX is a different set of letters in each URL and there are hundreds of them)<br /><br />How would I go about redirecting something like this to the home page. I've tried this so far:<br /><br />rewrite ^/go/.*$ http://www.oursite.com/ permanent;<br /><br /><br />This kind of works, but it redirects to the home page like this:<br /><br />http://www.oursite.com/?id=XXX (we don't want it to show the ?id=XXX)<br /><br />Any input is greatly appreciated.]]></description>
<dc:creator>jelson41</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 21 Feb 2012 12:46:58 -0500</pubDate></item>
</channel>
</rss>