Forum Discussion
vvskaladhar_488
Nimbostratus
Feb 15, 2015page redirection...
Hi All,
Currently if we type www.jobcredits.com in browser it will take me to https://www.jobcredits.com
when I try https://jobcredits.com it will opening page https://jobcredits.com
My r...
StephanManthey
Nacreous
Feb 16, 2015Hi wskalandhar,
the iRule needs to be extended a bit:when HTTP_REQUEST {
if { not ([string tolower [HTTP::host]] starts_with "www") } {
HTTP::redirect https://www.[getfield [HTTP::host] ":" 1][HTTP::uri]
} else {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
Thanks, Stephan
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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