Forum Discussion
JonasD_46068
Nimbostratus
19 years agoREDIRECTION ISSUE
I got the following iRule from someone in this forum:
when HTTP_REQUEST {
set userhost [HTTP::host]
if { $userhost == "testdomain.org"} {
set userhost "www.[HTTP::host]"
...
Parveez_70209
Nimbostratus
11 years agoHi Team,
The below Irule is working good, sorry for the confusion:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/broutlet" } { HTTP::redirect "http://olet.domain.com/broutlet/br/pt/" } }
But this is giving 302 redirection, it should give 301 redirection, how my Irule will look like.
Thanks and Regards Parveez
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