cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution

Can't force HTTPS: Too Many Redirects

We have Economy Web Hosting Linux and an SSL certificate installed on our domain, wilhidepainting.com. Now we need all http urls to redirect to https. I have followed the instructions on this page and modified my .htaccess file accordingly:

 

https://www.godaddy.com/help/redirect-my-cpanel-website-to-https-27870

 

This results in the following error on our site:

 

ERR_TOO_MANY_REDIRECTS

 

I contacted GoDaddy "Tech Support," who said the SSL certificate was not properly installed on our domain and that I should reinstall it, and then after 72 hours the URLs will automatically redirect to HTTPS. 72 hours have passed and as I expected, there is no "automatic" redirecting to the HTTPS url.

 

We need a solution for redirecting HTTP to HTTPS that does not take our whole site down. This is not a WordPress site.

 

Screenshot_20190227-210355.pngScreen Shot 2019-02-27 at 10.49.17 PM.png

6 REPLIES 6
Community Manager
Community Manager

Re: Can't force HTTPS: Too Many Redirects

Hi @bestpainter. Welcome to GoDaddy Community! It looks like you've been able to resolve this issue. I'm not seeing the redirect error when visiting your site. If so, please consider following up here with the steps you took to resolve the issue. Others may benefit from what you've experienced. Thanks! 

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.

Re: Can't force HTTPS: Too Many Redirects

No, it is not fixed. I can't leave the website in a broken state because customers use it to contact me, so I had to remove the code from .htaccess file that was causing the too many redirects error.

 

If you look at the site now, you'll see that it loads over multiple URL variations:

 

https://www.wilhidepainting.com/

https://wilhidepainting.com/

http://www.wilhidepainting.com/

http://wilhidepainting.com/

 

This seems to indicate that the SSL is installed properly, and now we need to redirect the URL variations to our preferred one, which is https://wilhidepainting.com. However, if I edit the .htaccess file with code to redirect to our preferred URL, the site crashes with the "too many redirects issue."

 

I have not receive an answer from how to fix this from either official GoDaddy support or the forums.

Community Manager
Community Manager
Solution

Re: Can't force HTTPS: Too Many Redirects

Hi @bestpainter. Sorry you're still having trouble. To clarify, we don't have anything in place on our Linux hosting plans that would automatically set up a redirect to HTTPS. We do have this on Managed WordPress hosting and our GoCentral Website Builder plans, but not other hosting platforms. In this case, you would need to script your own .htaccess redirect. The only information I have on that is what is listed in this article. While it is for cPanel, the principle is the same. You'll need to ignore the information about /public_html as you won't have that directory. You'll need to put the .htaccess file in the root directory of your website. I hope that helps. If not, others in the community might be able to offer further suggestions. 

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.
Solution

Re: Can't force HTTPS: Too Many Redirects

Hey, Thanks for asking this question, as I also have economy hosting, have purchased ssl, and ran into the same issue.

 

The godaddy help page on .htaccess file helped some, but it didn't quite work for me either. So I did some google searching and found an example of another .htaccess file that worked for me.

 

I use frontpage still for my site and ftp it, so I created a file named 1.htaccess and then after I uploaded it, used file manager at godaddy to rename the file to just .htaccess

 

Here is what I put into it:

 

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]

 

Just those three lines and I think my site is working fine now. I got this example from the following page:

 

https://help.dreamhost.com/hc/en-us/articles/215747758-Force-your-site-to-load-securely-with-an-htac...

 

Good luck!

 

Edward

 

Re: Can't force HTTPS: Too Many Redirects

I have the EXACT SAME ISSUE with godaddy. This is a joke and very unprofessional of godaddy to create a technical help document that leads us to bring down our websites and costs us large sums of money.
Community Manager
Community Manager

Re: Can't force HTTPS: Too Many Redirects

Hi @eengland and @jeremybengtson. Thanks for posting. Sorry you had difficulty. Glad you were able to get something to work @eengland. I was able to use the redirect from the help article I shared before in a test cPanel account and it redirected without issue, so it can work. However, redirects in .htaccess can be tricky, especially if you're using any kind of CMS, like WordPress, Joomla, etc. I hope you're able to get something figured out @jeremybengtson

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.