Joined: 27 Mar 2009
|Posted: Fri Mar 27, 2009 4:08 pm Post subject: Infinite Proxy Loop
|Hi - I'm trying to reduce the length of an existing context root for SEO purposes.
Current URL is structured like this:
I would like to do this:
I need to add a 301 redirect to the current URL to the new URL for SEO purposes. Then do a proxy redirect back to the current URL because the application expects the longer URL.
This produces an infinite loop:
RewriteRule ^/app1/name2/name3/name4/(.*)$ /shop/$1 [R=301,NS]
RewriteRule ^/shop/(.*)$ /app1/name2/name3/name4/$1 [P,L,NS]
Can anyone tell me if this is possible? Thanks!