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.
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