Title: [Plugin: Google XML Sitemaps] HTTPS links are generated by mistake when logged in as Admin using SSL
Last modified: August 20, 2016

---

# [Plugin: Google XML Sitemaps] HTTPS links are generated by mistake when logged in as Admin using SSL

 *  [Meliovation](https://wordpress.org/support/users/meliovation/)
 * (@meliovation)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-https-links-are-generated-by-mistake-when-logged-in-as-admin-using-ssl/)
 * **The sitemap output is generating links using https:// instead of http:// **
 * I believe this happens because I am logged in using HTTPS when managing the blog
   and writing post content. This also causes the sitmap.xml file to be hosted on
   an HTTPS path only.
 * However when I click the link on the plug-in settings page to generate the sitemap
   manually, it generates the links correctly as HTTP and puts the sitmap file on
   http:// as well.
 * This sounds like an important issue to resolve since it is recommended that WordPress
   admins use SSL when managing the site. Can this be fixed or is this another problem
   that you are aware of?
 * [http://wordpress.org/extend/plugins/google-sitemap-generator/](http://wordpress.org/extend/plugins/google-sitemap-generator/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [jcottone](https://wordpress.org/support/users/jcottone/)
 * (@jcottone)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-https-links-are-generated-by-mistake-when-logged-in-as-admin-using-ssl/#post-3026525)
 * I had the same issue. In sitemap-core.php, line 361 I replace this:
 * `return str_replace ( array ( '&', '"', "'", '<', '>'), array ( '&' , '"', ''','
   <' , '>'), $string);`
 * With this:
 * `return str_replace ( array ( '&', '"', "'", '<', '>' , 'https'), array ( '&','"',''','
   <' , '>' , 'http'), $string);`
 *  [biswajeet](https://wordpress.org/support/users/biswajeet/)
 * (@biswajeet)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-https-links-are-generated-by-mistake-when-logged-in-as-admin-using-ssl/#post-3026558)
 * **[@jcottone](https://wordpress.org/support/users/jcottone/)** thanks for the
   tips! But there required a permanent fix in the upcoming release regarding this
   particular thing.
 * btw, if suppose a stable site with good ranks in google suddenly change all the
   links in the sitemap to https then how google will treat these redundant links.
   Will such situation lead to any penalty or loss of page rank?
 * If this can lead to loss of page rank, then its a matter of high concern and 
   the author is advised to resolved this bug asap in the next release.
 * Can anyone share any experiences regarding the above mentioned situation…
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Google XML Sitemaps] HTTPS links are generated by mistake when
logged in as Admin using SSL’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-generator/assets/icon-256x256.png?rev=2713572)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/google-sitemap-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-generator/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 2 replies
 * 3 participants
 * Last reply from: [biswajeet](https://wordpress.org/support/users/biswajeet/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-https-links-are-generated-by-mistake-when-logged-in-as-admin-using-ssl/#post-3026558)
 * Status: not resolved