Forum Discussion

Jharper_43334's avatar
Jharper_43334
Icon for Nimbostratus rankNimbostratus
Jul 03, 2012

Redirect SharePoint 2007 subsite to 2010 almost working (using iRules)

I'm trying avoid a full cutover of all sites to SharePont 2010 from 2007. I've been experimenting with ProxyPass and other iRules to redirect an individual site from 2007 to 2010. In all iRule test cases, most everything except for the Ribbon and the Site Action dropdown are working. Has anyone been successful with this? If so, what's the secret?

 

 

F5 Version 9.4.3

 

 

Example iRule: (Mostly Working Except for Ribbon)

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::path]] starts_with "/IT" } {

 

Rewrite host header value and select pool

 

HTTP::header replace Host teams2010.hbk.com

 

pool WSS_TeamsFarm_Pool

 

} else {

 

pool SP2010_Pool } }

 

  • mikeshimkus_111's avatar
    mikeshimkus_111
    Historic F5 Account
    hi Jharper,

     

    Most of the time, issues with the ribbon, etc, are due to either incorrectly configured alternate access mappings, or compression. Have you looked at the traffic in HTTPwatch or some other tool to see what is coming back from the BIG-IP?

     

    thanks

     

    Mike
  • I've been using Fiddler2 and haven't seen any errors. The problem is just occurring when using ProxyPass and other iRules that rewrite the URI. The Ribbon gets stuck in a loading state. I've configured the Alternate Access Mappings properly as far as I can tell.
  • mikeshimkus_111's avatar
    mikeshimkus_111
    Historic F5 Account
    Is it actually replacing the host header? You may need double quotes around the new host header you're swapping in:

     

     

    https://devcentral.f5.com/wiki/iRules.HTTP__host.ashx

     

     

    Also, when you use string tolower, the string you're searching for should be in lower case-"/it" rather than "/IT", for example.

     

  • I see the same behavior when using the ProxyPass iRule. It seems like it's not redirecting something, but I can't find anything in the logs. Have you be able to successfully redirect a subsite in SharePoint?
  • I see the same behavior when using the ProxyPass iRule. It seems like it's not redirecting something, but I can't find anything in the logs. Have you be able to successfully redirect a subsite in SharePoint?
  • I see the same behavior when using the ProxyPass iRule. It seems like it's not redirecting something, but I can't find anything in the logs. Have you be able to successfully redirect a subsite in SharePoint?
  • mikeshimkus_111's avatar
    mikeshimkus_111
    Historic F5 Account
    I have not tested that, or the ProxyPass iRule. Might be helpful to look at some packet captures from the servers you're redirecting from/to, to see what the response is and if some request isn't going to the right place.
  • This is working now. See this thread https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/62/aft/2163558/showtab/groupforums/Default.aspx