GoogleSitemap not displaying HTTPS in the XML results. It is showing the old url ie with HTTP, rather than HTTPS - I don’t know if this is effecting Google but I would like to fix. Thanks, David
Depending on how you call the “GoogleSiteMap” snippet, it might still be the version 1 code that gets executed.
In the version 2 code, the value for the site url is read from the system/context setting site_url and output in a <loc> tag:
If there is no context setting site_url and no explicit site_url system setting, the MODX core code extract the value from the current request ($_SERVER['HTTPS'], $_SERVER['HTTP_HOST']) in the file core/config/config.inc.php.
Meaning, if you call your site with http:// then the site_url setting will contain http://, if you call it with https:// the setting will contain https://.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.