Forum Discussion
iRule to add www without changing URL
- Jul 05, 2019
Do you want to change Host header sent from the client in server side connection or do you want to redirect the client to https://WWW.abc.com/testfolder/blahblahblah
to redirect the client, use following code
when HTTP_REQUEST { if {[HTTP::host] eq "abc.com"} { HTTP::redirect "https://www.abc.com[HTTP::uri]" } }
Probably a description of the problem you are trying to solve would help here.
- MihirP1129Jul 05, 2019Nimbostratus
I don't know the full details, but what I was told from our web developers, is that this is related to an SSO authentication between the client and us. Client host a site on their end which the user authenticate to, then they click on a link on the page that takes them to a URL we host (let's say we host abc.com). So the minute the user clicks on the link, it'll send a request for https://abc.com/blahblahappenduserID (it'll append a unique ID or info to the URL) but the SSO authentication is failing, because it needs to be https://WWW.abc.com/blahblahappenduserID. I'm trying to figure out a way to add the www for the incoming request without changing the URL. Hope that makes sense.
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