Bug: Magento 1 trailing https in Base URL after migration


#1

This is a bug that appeared after the Cloudways team migrated my Magento 1 site.

[SQL]
In core_config_data table, the values:
web/unsecure/base_url
web/secure/base_url

had my domain name after a few https.

One https was intentional but a few others appeared with line breaks. Amazingly the site worked fine even after researching that there shouldn’t be line breaks in http headers (where the base url in sent).

I removed them and no side effects yet but would like to know how they came to be.


#2

In core_config_data table, the web/unsecure/base_url should be without HTTPS. For example: http://www.example.com/"

And,the web/secure/base_url should be with HTTPS.