https required in sitemap links
4 posts
• Page 1 of 1
https required in sitemap links
I have set my Joomla global configuration server settings for Force SSL to "entire site" but Xmap doesn't appear to honour this when generating the sitemap xml. Is there some way I can force it to use https in the links rather than http? Or does googlebot not check certificates anyway making it unnecessary?
TIA,
Nick
TIA,
Nick
- nickweavers
- Fresh Boarder

- Posts: 5
- Joined: Sat Apr 07, 2012 12:55 pm
Re: https required in sitemap links
Hi Nick,
You need to go to each item in the menu manager.
Menu -> Metadata Options -> Secure (make sure it's on. it's probably on ignore mode)
You can see my XML sitemap here in SSL : https://discoverphils.com/index.php?option=com_xmap&view=xml&tmpl=component&id=1
Hope that helps.
You need to go to each item in the menu manager.
Menu -> Metadata Options -> Secure (make sure it's on. it's probably on ignore mode)
You can see my XML sitemap here in SSL : https://discoverphils.com/index.php?option=com_xmap&view=xml&tmpl=component&id=1
Hope that helps.
- verzosa
- Fresh Boarder

- Posts: 3
- Joined: Wed Apr 04, 2012 4:32 pm
Re: https required in sitemap links
Thanks, that helps. But not all menu items show the meta data fields (such as those for external URL which can be used for user written components).
I think it would be much more convenient if the Xmap extension would honour the Gobal Configuration parm for Force SSL.
Best regards,
Nick
I think it would be much more convenient if the Xmap extension would honour the Gobal Configuration parm for Force SSL.
Best regards,
Nick
- nickweavers
- Fresh Boarder

- Posts: 5
- Joined: Sat Apr 07, 2012 12:55 pm
Re: https required in sitemap links
I modified my copy of com_xmap/vies/xml/tmpl/default_class.php to make it check the force_ssl site params as follows:
I hope the Xmap developer will consider including this in a future release, but for now the code update may help any others with the same problem.
- Code: Select all
function printNode($node)
{
...
// Get the item's URL
$forceSSL = JFactory::getConfig()->get('force_ssl');
if ($forceSSL == 2) {
$link = JRoute::_($node->link, true, 1);
} else {
$link = JRoute::_($node->link, true, (@$node->secure? 1: -1));
}
...
I hope the Xmap developer will consider including this in a future release, but for now the code update may help any others with the same problem.
- nickweavers
- Fresh Boarder

- Posts: 5
- Joined: Sat Apr 07, 2012 12:55 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 2 guests