Forum Discussion
Sharepoint Site Redirections using HTTPClass or iRules
I have a client who is moving their sharepoint sites on an individual basis along the lines of
Source http://host1/site1/library1/location1 http://host1/site1/library2/location2 http://host1/site1/library3/location3 Destination http://host2/site1/library1/ocation1 http://host2/site1/library3/ocation3
So only redirecting particular locations. I'm not a sharepoint person either.
I can write an iRule to pick out the host and specific URI etc OR I can write multiple HTTPCLASS profiles which do the same thing. The issue is that there are currently around 40 redirections required, so in practical terms this equates to an iRule with 40 or so duplicated entries or 40 or so HTTPCLASS-es asociated with the VS.
Has anyone had any experience in this type of senario where I can get some advice what would be the best approach.
1 Reply
- Kevin_Stewart
Employee
Just my humble opinion, but managing that list of hosts/URIs and associated redirects is by far most easily done with a data group and a very simple iRule. Example:
when HTTP_REQUEST { if { [class match [string tolower [HTTP::host][HTTP::uri]] starts_with my_sp_datagroup] } { HTTP::redirect "https://[class match -value [string tolower [HTTP::host][HTTP::uri]] starts_with my_sp_datagroup]" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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