2 Day Special: Get our 18 extensions, 20 templates and 500+ training videos for as low as $97!  Sale ends in 1 Day
Joomlashack

How to Disable XML Styling in OSMap

How to Disable XML Styling in OSMap

One of our members was having trouble submitting his sitemap to Google. The message displayed at Google was:

"Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead."

This tutorial will show you how to disable XML styling in OSMap, which should fix the issue. Let's get started.

Background Info

Google wants the sitemap to be in one of the following formats:

  1. XML
  2. RSS
  3. Text
  4. Google sites

Of the four, XML is most common. As you can see, HTML isn't on the list.

OSMap generates an XML version of a sitemap and an HTML version. The first one is used for search engines, while the second one is meant to be human readable.

The Problem

Here's where it gets messy...

Browsers recently implemented a feature where you can turn XML files into a more human readable format. OSMap implements this feature by default. To a user, it appears sort-of like HTML. But its source code is XML.

Also, one of Joomla's legacy SEO features is the ability to add ".html" to the end of URLs.

When Google sees ".html" at the end of the URL and a prettified XML file, it results in a false-negative. It deduces that it's not an XML file when it actually is. 

How to Disable XML Styling in OSMap

The Solution

 
  • In the menu settings, set the "Add Styling" option to No:
 

Then submit the URL of that menu item and it should work in Google.

That's all there is to it. Congrats!


About the author

Nick is the Director of Support at Joomlashack and you can find him in almost every area of the site, from answering support requests and account questions to creating tutorials and software.

 

 

Since 2005, Joomlashack has been a leading supplier of free and commercial Joomla templates, Joomla extensions, and Joomla Training.
Joomlashack.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.