BV Commerce Forum
»
BV Commerce Support
»
How Do I? Questions
»
Terminate HTTP to HTTPS redirect for Cloudflare?
Rank: Member
Joined: 3/30/2025(UTC) Posts: 5 ![United States United States]()
|
I am new to ASP.NET and BV:
How do I make my site stop redirecting HTTP requests to HTTPS? I want Cloudflare to do that. I cannot seem to put my site behind Cloudflare until I get this done.
Thank you in advance!
|
|
|
|
Rank: Member
Joined: 4/29/2010(UTC) Posts: 259
Thanks: 4 times Was thanked: 11 time(s) in 10 post(s)
|
Hi Bill, You don't normally need to disable the re-director in order to allow Cloudflare to handle the HTTP to HTTPS conversion. It sounds like something else could be causing an issue within the configuration. How have you setup your origin server/certificates? What error messages are you receiving when enabling Cloudflare? Edited by user Monday, March 31, 2025 7:42:54 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Joined: 3/30/2025(UTC) Posts: 5 ![United States United States]()
|
Hello Steve95! With Cloudflare proxy status in DNS only mode and when trying to access the domainname.com (without the WWW) I get an HTTP 301 followed by a HTTP 307 redirecting me to www.domainname.com. If I enable the Cloudflare proxy endless redirects result such that the site does not work at all. I have looked thru IIS settings and can find no redirects there. Thank you in advance!
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,400 ![United States United States]() Location: Hummelstown, PA Thanks: 6 times Was thanked: 165 time(s) in 160 post(s)
|
Quote:How do I make my site stop redirecting HTTP requests to HTTPS? I want Cloudflare to do that. Why do you want Cloudflare to do that? It's normally best to allow BVC to do this, namely that it eliminates multiple redirects if someone requests a page over http that has a redirect setup; in that scenario Cloudflare would redirect it to the https version of the page and then BVC would redirect it again to wherever the redirect is pointed. Edited by user Monday, March 31, 2025 1:12:11 PM(UTC)
| Reason: Not specified |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 3/30/2025(UTC) Posts: 5 ![United States United States]()
|
Even if I take our the CF redirect from HTTP to HTTPS rule, as soon as I change the proxy status from DNS Only to Proxied th e site goes down with the error "Too many redirects".
When I've had this problem with an ASP.NET CORE MVC site, taking out the router command to redirect from HTTP to HTTPS solved the problem.
Therefore I figured the same is going on with this site.
Inside my firewall - where CloudFlare does not work - I can clearly see something is redirecting http to https, but I cannot understand what, if it is not BVC.
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,400 ![United States United States]() Location: Hummelstown, PA Thanks: 6 times Was thanked: 165 time(s) in 160 post(s)
|
It probably is BVC. You can configure the redirector by going to the Options >> Site Settings >> Redirector page in the admin. You probably just need to disable the "Redirect to Primary Domain" setting rather than the entire redirector.
However, this has never been a problem with any other site we've configured for Cloudflare so our concern is that there is something wrong with your configuration. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 3/30/2025(UTC) Posts: 5 ![United States United States]()
|
Thank you! I will try that and let you know if it helps!
|
|
|
|
Rank: Member
Joined: 3/30/2025(UTC) Posts: 5 ![United States United States]()
|
Well, I am embarrassed and also sorry to have bothered you guys. It sounds like we are going in a different direction. Thank you for your help!
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.