WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google XML Sitemaps] Changing the location of sitemap.xsl in the Google Sitemap Plugin (3 posts)

  1. jimmiejo
    Member
    Posted 5 years ago #

    I moved my site live from my localhost last week, and ran into an issue with the sitemap plugin.

    It doesn't want to recognize the new directory, which results in this error:

    Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype: http://www.mydomain.com/bravo/wp-content/plugins/google-sitemap-generator/sitemap.xsl

    The live site is obviously now in the root directory, not /bravo, and I can't find where to change/fix that in the database or sitemap settings.

    Any help would be appreciated :)

  2. arnee
    Member
    Posted 5 years ago #

    Is the problem fixed if you click on the "Use default" link next to the stylesheet setting and save the changes?

  3. Electric Studio
    Member
    Posted 5 years ago #

    To solve this kind of problem, open up your .htaccess and add this line at the end of the file.

    AddType application/xml .xsl

    Save and upload.

Topic Closed

This topic has been closed to new replies.

About this Topic