Forum Discussion
f5user_108265
Nimbostratus
Oct 30, 2007HTTP Redirect (301)
Hi everybody,
I was wondering whether it is possible to do a http 301 redirect. Simple iRule that I have written does a 302 redirect, but I would prefer it to be 301. This possible?
Thanks,
AL
- hoolio
Cirrostratus
You can use HTTP::respond (Click here) instead of HTTP::redirect to customize the status and Location for a redirect:HTTP::respond 301 Location https://example.com
- f5user_108265
Nimbostratus
Yes, I have discovered the "respond" option shortly after I posted my original message. Thank you for your time Aaron and sorry for littering the forum.
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