Forum Discussion
JonasD_46068
Nimbostratus
Mar 15, 2007REDIRECTION 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
Aug 16, 2014But 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
