I get "too many redirects" problem when migrating localhost site

So, I have a website working properly on my localhost but when I migrate it to hosted server I get too many redirects error. I've done migrations before and this never happend but this time. Difference is that the server has SSL certificate activated to my domain. Can this problem occur because I developed site on localhost with no SSL certificate and on HTTP protocol instead of HTTPS? How can I fix this or what is the proper way for deployment in this scenario? Thank you in advance.

Topic redirect migration https ssl errors Wordpress

Category Web


Try to set these settings in your wp-config.php:

define('WP_SITEURL', 'https://example.org');
define('WP_HOME', 'https://example.org');

Where https://example.org – your new domain

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.