Forum Discussion
1000blocks
Nimbostratus
Jul 07, 2016301 iRule redirection generating an extra 301 status code?!?
Hi,
We have this iRule in place for 301 redirection...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "sitename.com" } then {
HTTP::respond 301 Location ...
1000blocks
Nimbostratus
Jul 07, 2016Hi Yann. Thanks for your help. Answers to your questions below...
Yes - sitename.com and www.sitename.com resolve to the same Virtual Server IP address.
No - it's not a typo! If we check the HTTP redirection actions that are happening in the browser when accessing our site, it is like this below...
301 Moved Permanently
http://www.sitename.com/
301 Moved Permanently
https://www.sitename.com/
200 OK
Strange eh?!!
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