Thanks! With that I was able to figure out the correct config for Apache.

RewriteRule ^/old(.*) http://example.com/new/app$1 [R=301,L]

Alex Derr

-----Original Message-----
From: Alan McGinlay [mailto:[email protected]] 
Sent: Tuesday, January 08, 2013 9:53 AM
To: [email protected]
Subject: Re: [Pound Mailing List] Proxy a request to new URL

Hi,

This is not a feature supported by pound.

Assuming you are using Apache, you can use rewrites as follows:

RewriteRule ^old/(.*)/$ http://example.com/new/app/$1 [R=301,L]

/Alan

Den tis  8 jan 2013 17:37:03 skrev Derr, Alex:
> Hi,
>
> I am attempting to proxy some image files from an old URL to the new 
> while redirecting the old URL to the new. See below:
>
> Old URL: example.com/old/images/image.gif
>
> New URL: example.com/*new/app/*images/image.gif
>
> This configuration:
>
> Service
>
>      URL “^/old.*”
>
>      Redirect “https://example.com/new/app”
>
> End
>
> Only redirects me to the home page of the new URL 
> (https://example.com/new/app), and the end of the URI
> (/images/image.gif) is lost.
>
> How can I get pound to redirect to the new URL and keep the end of the 
> URI string?
>
> Thanks!
>
> Alex
>

--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.
N�����r��zǧu�ޙ���+a���y�n�˛���m�h���u�l��!>W���(�֜��,z��+��+�笶*'

Reply via email to