admin管理员组

文章数量:1418302

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

Share Improve this question edited Jul 27, 2019 at 11:15 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Jul 27, 2019 at 11:04 rob_87rob_87 31 bronze badge 3
  • 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
Add a comment  | 

1 Answer 1

Reset to default 0

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.

本文标签: plugin wp seo yoastWordpress replaces quothttpsquot with quotquot for Site amp WordpressURL