How about this?<div><br></div><div>location /phpshop {</div><div>    rewrite ^.*$ <a href="http://www.my-domain.com">http://www.my-domain.com</a> permanent;</div><div>}</div><div><br></div><div>Ray.</div><div><br></div><div>

<br><div class="gmail_quote">On Thu, Apr 22, 2010 at 4:18 AM, openstream <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi there,<br>
<br>
I&#39;m trying to permanently redirect various outdated URLs to the domain&#39;s home page like so:<br>
<br>
location /phpshop {<br>
  rewrite ^ <a href="http://www.my-domain.com" target="_blank">http://www.my-domain.com</a> permanent;<br>
}<br>
<br>
which results e.g. in<br>
<br>
<a href="http://www.my-domain.com/phpshop/?page=shop/flypage&amp;product_id=65" target="_blank">http://www.my-domain.com/phpshop/?page=shop/flypage&amp;product_id=65</a><br>
<br>
to be rewritten to<br>
<br>
<a href="http://www.my-domain.com?page=shop/flypage&amp;product_id=65" target="_blank">http://www.my-domain.com?page=shop/flypage&amp;product_id=65</a><br>
<br>
which kind of makes sense, but I need to strip those parameters (page and product_id), too.<br>
<br>
Any ideas on how to accomplish this?<br>
<br>
Here&#39;s my complete virtual host configuration:<br>
<br>
<a href="http://openstream.pastebin.com/N09mUUef" target="_blank">http://openstream.pastebin.com/N09mUUef</a><br>
<br>
Any pointers would be very much appreciated.<br>
<br>
Cheers, Nick<br>
Openstream Internet Solutions<br>
<a href="http://www.openstream.ch" target="_blank">http://www.openstream.ch</a><br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,77780,77780#msg-77780" target="_blank">http://forum.nginx.org/read.php?2,77780,77780#msg-77780</a><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>