Forum Discussion
metalslug2004_2
May 19, 2015Nimbostratus
Could someone help me with a simple redirect (iRule)?
Sorry if any of this is dumb new user stuff... I have done a bit of searching and can't find a clear answer.
Basically what I want to do is have anyone hitting "www.mypage.com/something" redire...
- May 19, 2015
You might consider using a Traffic policy (if you are on TMOS 11.4 or greater) 2 Minute Tech Tip: URL Redirects
If not then you might want to consider an iRule something like this:
when HTTP_REQUEST { if { [string tolower [HTTP::path]] starts_with "/admin" } { HTTP::redirect "/" } }
Either way you will have to apply the traffic policy to the HTTP and HTTPS virtual server.
metalslug2004_2
Nimbostratus
Another newb question. So that iRule is applied globally correct? Once i make that rule, it should take affect immediately?
Also, that rule should work for both HTTP and HTTPS correct?
Thanks,
metalslug2004_2
May 20, 2015Nimbostratus
Again, thank you very much for your help!
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