Google XML Sitemaps
HTTPS links are generated by mistake when logged in as Admin using SSL (3 posts)

  1. Meliovation
    Posted 3 years ago #

    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?


  2. jcottone
    Posted 3 years ago #

    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);

  3. biswajeet
    Posted 3 years ago #

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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google XML Sitemaps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic