Question

When I save "https://example.com" in General Settings as my Site & Wordpress URL, it gets replaced by "//example.com".

To analyze the problem, I checked the Wordpress database, but 'WP_HOME' and "WP_SITEURL" are correctly stored as "https://example.com".

Actually, this is not a big problem, but Yoast SEO also shows my canonical URL as "//example.com". So I need to fix that problem ...

Was it helpful?

Solution

WordPress doesn't do this on its own. It must be a plugin or a theme. The first step in trying to diagnose this would be to turn off all plugins and switch to a default theme, then start turning plugins back on, one by one, till you find the culprit. If none of your plugins are to blame, then it is probably the theme you were using.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top