xmapI only realised a few days ago as I looked into someone elses site that the standard url on an xmap sitemap for the homepage is /home

Both this and the standard / urls exist and it can lead to problems when getting indexed.

Here's how to sort it out...

Open up your ftp client and go to both files:

components/com_xmap/xmap.html.php
components/com_xmap/xmap.xml.php

Search the files for the line:

[code]$link = Xmap::getItemLink($node);[/code]

Just after this line, add the line:

[code]$link = str_replace('/home', '/', $link);[/code]

This will replace the /home link with the root of your domain.

If you use the .html prefix in global configuration then add the .html to the end of /home

Nothing worse than search engines finding pages you didn't think were there!

 

Category: Joomla

Newsletter Signup

Latest Posts

Google+ Timeline Feed for your Website Google+ Timeline Feed for your Website 2012-05-11 - I was asked earlier today to create a Google+ widget for a website to replace a twitt... More detail
Run Facebook Messenger on Windows Vista Run Facebook Messenger on Windows Vista 2012-04-19 - Facebook has just released it's new messenger for windows but it only runs on Windo... More detail
Translate K2store Product Attributes with Joomfish Translate K2store Product Attributes with Joomfish 2011-11-03 - If you have a K2store and your site is in multiple languages, you might have found th... More detail
French Translations for K2store French Translations for K2store 2011-11-02 - I have been working recently with the K2 component/plugin K2store. As a simple sho... More detail
How I Upgraded to Joomla 1.7 How I Upgraded to Joomla 1.7 2011-09-25 - Inspired by Robert Vining over at www.joomstew.com and the fact that I am building mo... More detail

Twitter Stuff