Forum Discussion
Traffic Policy redirect
received a request to redirect traffic to other sites.
The request is if contains URI /sites/site1 then redirect to https://website.com/sites/site1. That is a easy rule, but the there are a very large amount of subsites. So trying to figure out how to do a wildcard match and then match it to the redirect URL to the same subsite.
for example:
https;//website1.com/sites/search ---> https://website2.com/sites/search
in the Traffic policy would have a condition if URI contains /sites/* then redirect to the redirect site
steven_normole I do not seem to be understanding the redirect requirement here. You have stated that if any request with the path of "/sites/site1" comes in that no matter the host field it should be redirected to "https://website.com/sites/site" which would also be included in your path that you are looking for. Can you please explain this in more detail or in another way because I do not believe you are explaining the request appropriately.
customer has a sharepoint site with hundreds of sites/subsites.
what they are looking for a one to one redirect to the new sites. for the example
https://website1.com/sites/subsite1 --> https://website2.com/sites/subsite1
https://website1.com/sites/subsite2 --> https://website2.com/sites/subsite2
https;//website1.com/sites/subsite2/subsite --> https://website2.com/sites/subsite2/subsite
https://website1.com/sites/subsite2/subsite3 --> https;//website2.com/sites/subsite2/subsite3
.... continueing on with ........
steven_normole It seems like you need to match on hostname rather than HTTP::path because your http path stays the same from source to destination URL. Based on the information you provided you should be able to match on Host with the match being "website1.com" and redirect to "website2.com" and keep the URI as is.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com