Forum Discussion
darrenclegg
Nimbostratus
May 14, 2020Rewrite URL iRule
I have used redirect before and they have worked but can't get this rule to work. When a user browses to abc.co.uk i want to change the URL in the browser bar to www.abc.co.uk. i have tried the...
Mayur_Sutare
MVP
May 14, 2020,
Below iRule looks good, it should work.
when HTTP_REQUEST {
if { [HTTP::host] equals "skipon.co.uk" } {
HTTP::redirect "https://www.skip.co.uk[HTTP::uri]"
}
}
Check under iRule statistics if you are seeing hits to it.
Mayur
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