Forum Discussion
Jeremi
Nov 12, 2015Nimbostratus
Rewrite 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/siteRe...
Stanislas_Piro2
Nov 12, 2015Cumulonimbus
The best solution is to:
-
create a alternate access mapping with:
- internal url : https://www.xyz.com
- external url : https://www.abc.com
- rewrite Host header with the following irule:
.
when HTTP_REQUEST
{
if { ([string tolower [HTTP::host]] equals "www.abc.com") } {
HTTP::header replace Host "www.xyz.com"
}
}
when HTTP_RESPONSE {
if { [HTTP::header exists "Transfer-encoding"] } {
HTTP::payload rechunk
}
}
With this solution, BigIP will send request with www.xyz.com to the server but replies from sharepoint will be with
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects