Forum Discussion
redirect HTTPS to HTTP
Will this do it?
when HTTP_REQUEST {
if {[HTTP::uri] equals {https://www.site.com/page1}} {HTTP::uri {http://www.site.com/page1}
}
}
- Kevin_Davies_40
Nacreous
1. What you have done above is not a redirect. You want HTTP::redirect {http://www.site.com/page1}2. If however you are just trying to pass traffic unencrypted to a back end server then you don't need to do this at all. Just set the pool to be the http servers and make sure server ssl is set to none in the VIP configuration.
- Luca_55898
Nimbostratus
Yep sorry the irule would be more like the below i guess. - Michael_Yates
Nimbostratus
If you use the same iRules for both HTTP and HTTPS traffic you could include something like this. It would not touch the HTTP Traffic, but would flip and redirect the HTTPS Traffic based upon the incoming TCP Port.when HTTP_REQUEST { if { [TCP::local_port] == 443 } { HTTP::redirect "http://[getfield [HTTP::host] ":" 1 ][HTTP::uri]" } }
- Luca_55898
Nimbostratus
Hi Guys, - dennypayne
Employee
Hi Luca, - Luca_55898
Nimbostratus
- Luca_55898
Nimbostratus
there is no SSL off load, these sites are only HTTP. - Luca_55898
Nimbostratus
I have been doing a lot of research on this and i still can't get this working.when HTTP_REQUEST { HTTP::redirect http://[HTTP::host][HTTP::uri] }
- Kevin_Davies_40
Nacreous
Luca, - mwaqasali_31193
Nimbostratus
Here is my website http://iphone8releasedate.net its not indexing. https://iphone8releasedate.net/ URL structure is index in google. how to redirect URL https to HTTP. your above .htaccess code not working. kindly guide me how to resolve this issue.
Recent Discussions
Related Content
* 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