Forum Discussion
After HTTPs to HTTP site not working
Hi,
I am trying to make ( https://www.site.com/x/y/z ) work without as ( http://www.site.com/x/y/z ) which means redirect this url from https to http So I applied the below iRule
when HTTP_REQUEST {
if { [HTTP::host] eq "www.site.com" and [HTTP::uri] eq "/x/y/z" } { HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
}
on (https VS) and it is working but but the site it self not working without https!
So if anyone can explain why the site is working with https only?
Have you created an HTTP virtual server running on port 80 for the site? Any firewall rules on the network blocking access to port 80?
You can get rid of the certificate error by purchasing a certificate that matches URL you are trying to access.
- Mohamed_LrhaziAltocumulus
You mean that when a client sends request: https://www.site.com/x/y/z They do get, as you planned, a redirect to: http://www.site.com/x/y/z
Right? If that is true, then what exactly is the problem? Maybe the browser refuses to follow such a redirect? check the browser console maybe?
- Ahmadj_283318Nimbostratus
yes exactly but when they get: http://www.site.com/x/y/z
it shows that site is not working
let me explain more
I have portal (https://domainname.com) and the (https://www.site.com/x/y/z) is a virtual portal using the certificate which is installed on: (https://domainname.com) because of this when I try to access https://www.site.com/x/y/z I revived message on the browser that
"The security certificate presented by this website was issued for a different website's address."
How can I avoid this message appearing
I tried to make it work without HTTPS by using the mentioned iRule but it shows that site is not working?
- mimlo_61970Cumulonimbus
Have you created an HTTP virtual server running on port 80 for the site? Any firewall rules on the network blocking access to port 80?
You can get rid of the certificate error by purchasing a certificate that matches URL you are trying to access.
- Ahmadj_283318Nimbostratus
thank you so much problem has been solved
- ekaleidoCirrus
Can you create a separate pool for this traffic and instead of redirect, just use the pool command?
when HTTP_REQUEST { if { [HTTP::host] eq "www.site.com" and [HTTP::uri] eq "/x/y/z" } { pool http_pool } }
- Ahmadj_283318Nimbostratus
Thank you so much the problem has been solved
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