Forum Discussion
dyegosouza_3456
Nimbostratus
Oct 23, 2018How to redirect site with www for without www
Hello everyone,
I'd like to redirect one url using irule. I'd like to redirect de "; for example, for "; (without ";). How can I do this using irule? Thanks.
- Dario_Garrido
Noctilucent
The simplest way:
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "www.site1.com.br" } { HTTP::redirect "https://site1.com.br[HTTP::uri]" } }
You can use other ways to do the same -> https://devcentral.f5.com/questions/simple-url-redirect-irule
KR, Dario.
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