When I save "" in General Settings as my Site & Wordpress URL, it gets replaced by "
//example
".
To analyze the problem, I checked the Wordpress database, but 'WP_HOME' and "WP_SITEURL" are correctly stored as "".
Actually, this is not a big problem, but Yoast SEO also shows my canonical URL as "//example
". So I need to fix that problem ...
When I save "https://example
" in General Settings as my Site & Wordpress URL, it gets replaced by "//example
".
To analyze the problem, I checked the Wordpress database, but 'WP_HOME' and "WP_SITEURL" are correctly stored as "https://example
".
Actually, this is not a big problem, but Yoast SEO also shows my canonical URL as "//example
". So I need to fix that problem ...
- 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. – Pat J Commented Jul 28, 2019 at 0:43
- 1 thanks a lot, you've been right. A plugin was responsible for that problem. If you put this comment as an answer, I will mark it as a valid answer. – rob_87 Commented Jul 28, 2019 at 9:40
- There, done. (I find, a lot of the time, I can debug a problem by turning off all plugins and then bringing them back one at a time.) – Pat J Commented Jul 28, 2019 at 15:09
1 Answer
Reset to default 0WordPress 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.