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]"
...
nitass
Employee
11 years agoBut this is giving 302 redirection, it should give 301 redirection, how my Irule will look like.
you have to use HTTP::respond instead of HTTP::redirect.
HTTP::respond
https://devcentral.f5.com/wiki/irules.HTTP__respond.ashx
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