Wordpress replaces "https://" with "//" for Site & Wordpress-URL

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

Topic rel-canonical site-url plugin-wp-seo-yoast Wordpress

Category Web


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.

About

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