I know the code below produces a redirect loop, but I don't know how to break the loop:
- Code: Select all
RewriteMap listofrewrites txt:/etc/httpd/conf/rewrites/map_listofrewrites.txt
RewriteCond %{REQUEST_URI} !^/mainsitearea1/sitearea1/subsitearea1/(.+)?$ [NC]
RewriteCond %{REQUEST_URI} !^/mainsitearea1/sitearea1/subsitearea2/(.+)?$ [NC]
RewriteCond %{REQUEST_URI} !^/mainsitearea1/sitearea1/subsitearea3/(.+)?$ [NC]
RewriteRule ^/mainsitearea1/(.+)$ mainsitearea1${listofrewrites:$1|/$1} [R=301,L,NC]
Questions:
- Overall: How do I break this loop?
- Code: Select all
RewriteCond %{QUERY_STRING} !^stopnow
RewriteRule ^/wps/wcm/myconnect/library/overallsitearea/mainsitearea1(.+)?$ /mainsitearea1_secured$1 [NC,R,L]
RewriteRule ^/mainsitearea1_secured(.+)?$ /wps/wcm/myconnect/library/overallsitearea/mainsitearea1$1?stopnow [NC,P,QSA]
RewriteCond %{QUERY_STRING} !^stopnow
RewriteRule ^/wps/wcm/connect/library/overallsitearea/mainsitearea1(.+)?$ /mainsitearea1$1 [NC,R,L]
RewriteRule ^/mainsitearea1(.+)?$ /wps/wcm/connect/library/overallsitearea/mainsitearea1$1?stopnow [NC,P,QSA]
Am I using DefaultValue correctly?
Is there a flag I should try? I am trying last, and I have tried NS.
We do have some friendly url rewrites that essentially cut the path down and make them look nice. They are being proxied:
Is the above causing a conflict as well?