SharePoint Redirect To New Path Using Public Name
Hello,
I'm trying to use the following code to redirect public traffic over a secure link (https://) to a SharePoint 2013 server that's listening on port "33230" at "/sites/BI/". I did this before with a SharePoint 2010 server listening on port "80" at "/" without a problem, but this time I'm just getting text from the site in one long column instead of text on top of graphics with the proper formatting (Browsers don't make a difference and I have the same problem with-in the company unless I access the server with the server name in the URL with-in our company and then it looks fine). Firewall has port 80 and 443 open to accept incoming connections to the Virtual IP. Here's the iRule:
"dashboards.domain.com" {
switch [TCP::local_port] {
80 { HTTP::redirect "https://[HTTP::host]/sites/BI/" }
443 {
if { [HTTP::uri] != "/sites/BI/" } {
HTTP::redirect "https://[HTTP::host]/sites/BI/"
}
pool SharePoint_Dashboards_pool
}
}
}
I have the following SharePoint Alternate Access Mappings setup in this order:
http://SERVER[Default]http://SERVER
http://SERVER:33230[Default]http://SERVER:33230
https://dashboards.domain.com:33230[Internet]https://dashboards.domain.com:33230
http://dashboards.domain.com:33230[Internet]https://dashboards.domain.com:33230
Thanks, Brian