Forum Discussion
Jon_Singh
Altostratus
Jul 12, 2019Direct all URI's back to only the host
Trying to direct all URI's back to host, can I do something like this?
when HTTP_REQUEST {
if ([HTTP::uri] == * ) }{
HTTP::redirect http://website.com
}
}
- Faruk_AYDIN
Altostratus
You can. But this have some side effects. It shows only root page without jpegs, css, js files unless you do them inline. the correct version of the iRule:
when HTTP_REQUEST { if { not ( [HTTP::uri] eq "/" ) }{ HTTP::redirect http://website.com } }
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