Forum Discussion
Carol_Williams_
Nimbostratus
Jun 13, 2006Send a 301 error instead of 302 with redirect
I am using version 4.6.4 and currently have a rule to direct everything coming in without a www to www.sitename.com. I would like to tell F5 to make this a permanently moved(301 error) instead of a t...
Eric_St__John
Employee
Jun 04, 2012What version of code are you using? If you are using v9 or newer you can do something like this:
when HTTP_REQUEST {
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]
}
301 redirects are to inform search engines that the page has moved permanently. It shouldn't have any huge impact one way or the other(302 or 301) for this.
Eric
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