Infinite Proxy Loop

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
roswald51
-


Joined: 27 Mar 2009
Posts: 1

PostPosted: Fri Mar 27, 2009 4:08 pm    Post subject: Infinite Proxy Loop Reply with quote

Hi - I'm trying to reduce the length of an existing context root for SEO purposes.

Current URL is structured like this:
http://[host]/app1/name2/name3/name4/HomePage?[querystring]

I would like to do this:
http://[host]/shop/HomePage?[querystring]

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!
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group