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

Http:// to https:// forwarding for domain not working

I currently got an SSL ceritficate for my site.  So the http:// version and https:// both exist but I want to forward the http to https.

 

I did this using the FORWARDING option in Manage DNS but my site is not getting redirected to the secured version.

 

I am hosting it on Pythonanywhere,

2 REPLIES 2
Community Manager
Community Manager

Re: Http:// to https:// forwarding for domain not working

Hi @stoichkov. Thanks for being part of GoDaddy Community! If you want to redirect traffic to HTTPS from HTTP, the best way to do this is by using scripting with your web hosting provider. Usually, this is done by rules within a .htaccess file (for Apache servers). If you use our forwarding service, the IP address that your domain points to changes and will likely cause errors. I'd recommend deleting the forwarding service and making sure that your domain is properly pointed toward your website host's DNS. You may want to check with them about a hosted redirect. Hope that helps. 

 

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

Re: Http:// to https:// forwarding for domain not working

I figured this out finally.

 

For domain redirect in godaddy, the problem was to switch domain name servers to default. This would have been the solution if google hadn't started marking the site with the "ERR_CERT_COMMON_NAME_INVALID" error.

 

The best and simplest solution was to add "SECURE_SSL_REDIRECT = True" to my django settings file. This forced all http requests to my https version without having to do anything in godaddy.