url rewriting
4 TopicsRewrite specific URL in SharePoint 2013
Hello, I would like to rewrite a specific SharePoint 2013 URL from one web appplication SharePoint to another one using the LTM module on a Big-IP. For example, the URL https://www.abc.com/siteRewrite will be rewritten to https://www.xyz.com/siteRewrite. The end user must not see the new url meaning at any time he will see https://www.abc.com/siteRewrite. The root site https://www.abc.com/ need to stay available for the user. I have tried to do that using iRule (rewrite iRule and ProxyPass iRule). The problem is that the website is well rewritten but the content inside doesn't display properly some images, links, folders .... are missing. You will find below the rewrite iRule used (the proxy pass iRule I have tested is the one available on the F5 website). when HTTP_REQUEST { if { ("[string tolower [HTTP::host]][HTTP::path]" starts_with "www.abc.com/siteRewrite/") } { HTTP::header remove "Accept-Encoding" HTTP::header replace Host "www.xyz.com" STREAM::disable } } when HTTP_RESPONSE { if { [HTTP::is_redirect] && [string tolower [HTTP::header "Location"]] contains "www.xyz.com" } { HTTP::header replace Location [string map {"www.xyz.com" "www.abc.com"} [HTTP::header Location]] } if { [HTTP::header "Content-Type"] starts_with "text/" } { STREAM::expression "@www.xyz.com@www.abc.com@" STREAM::enable } } Do you know why the content is not rendering properly ? Is something missing in the iRule ? Is the APM module required for this ? If I have a look at the web page I see 404 error (not found) on some .axd resources (ScriptResource.axd, WebResource.axd). I think the problem is linked to these SharePoint resources and the root context (because rewritting the entire website www.abc.com to www.xyz.com is working). Is someone have an idea about it ? Thanks694Views0likes4CommentsiRule for URL rewriting
Hi All, I have a query on URL rewriting. Here is the scenario: abc.externalurl.com/something/action?key1=value1 --> F5 --> something.internalurl.com/action?key1=value1 secondhost.com is internal URL not available to the public, so I think it should be host replacement rather than redirect.292Views0likes6CommentsRules to redirect based on URL
Hi, I have a web application that is deployed on 3 servers also 3 URL's to them Server 1 (192.XXX.XXX.XXX) ==> http:\192.XXX.XXX.XXX\ Server 2 (192.XXX.XXX.YYY) ==> http:\192.XXX.XXX.YYY\ Server 3 (192.XXX.XXX.ZZZ) ==> http:\192.XXX.XXX.ZZZ\ I also have a public URL what given to me which is http://website.com/ I need to redirect different users to different servers based on a context on my public URL. When URL is http://website.com/User1 then redirect him to Server 1 http:\192.XXX.XXX.XXX\ When URL is http://website.com/User2 then redirect him to Server 2 http:\192.XXX.XXX.YYY\ When URL is http://website.com/User3 then redirect him to Server 3 http:\192.XXX.XXX.ZZZ\ But I dont have these contexts (User1,User2,User3) on my Servers 1,2 or 3.1.8KViews0likes2CommentsURL rewriting on our DR F5 for functionality testing
Hi all, I’d be grateful for some advice or some insight with something I am trying to do – I presume I’ll need to use irules. We have a backup site with copies of our apps that IIS expect connections on say www.mysite.co.uk (http and https virtual servers). We also own www.backupsite.co.uk. Our aim to be able to functionally test our backup site using xxx.backupsite.co.uk but in the event we’d need to flip over to our backup site we’d also need the applications available on the regular xxx.mysite.co.uk that IIS is expecting. Can this be done? Any help, hints, tips, greatly appreciated. Thanks.339Views0likes4Comments