Saturday, 25 October 2014 05:40
beggarly

XMAP confusion around xml file directory

An open forum for opinions and general questions

Re: XMAP confusion around xml file directory

Postby tokenring » Sat Dec 17, 2011 6:36 am

both sites have this in the .htaccess file too.

########## Begin - sitemap.xml for root directory SEO tests
# enable to allow SEO tests to see sitemap.xml in root directory
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&sitemap=1&view=xml
########## End - sitemap.xml for root directory SEO tests
tokenring
Senior Boarder
Senior Boarder
 
Posts: 41
Joined: Tue Nov 03, 2009 3:49 am

Re: XMAP confusion around xml file directory

Postby tokenring » Sat Dec 17, 2011 8:27 pm

so I can get all the 1.5 sites to pass, but not 1.7.

Please help with this.

<robots.txt>

User-agent: *
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /images/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /libraries/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /xmlrpc/
SITEMAP: http://www.aruffrufflife.com/sitemap.xml


<sitemap.xml>
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.aruffrufflife.com/index.php?option=com_xmap&amp;view=xml&amp;id=1&amp;lang=en</loc>
</sitemap>
</sitemapindex>



<.htaccess>

########## Begin - sitemap.xml for root directory SEO tests
# enable to allow SEO tests to see sitemap.xml in root directory
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&sitemap=1&view=xml
########## End - sitemap.xml for root directory SEO tests

There is obviously a configuration combination that I'm doing wrong with my 1.7 sites. I can't figure it out what it is. Our questions and answers back and forth are a bit hard to follow.


Thanks,
Aaron
tokenring
Senior Boarder
Senior Boarder
 
Posts: 41
Joined: Tue Nov 03, 2009 3:49 am

Re: XMAP confusion around xml file directory

Postby guilleva » Mon Dec 26, 2011 5:31 pm

Hi, the link the sitemap are different for joomla 1.7

they use "id=1" instead of "sitemap=1", so please make sure you use that sintax on both, the .htaccess and the sitema.xml
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: XMAP confusion around xml file directory

Postby tokenring » Mon Dec 26, 2011 10:45 pm

thanks guilleva. Maybe you should update your little page on this to reflect that. :-)

also, I'll try what you are saying and do the tests again. If it doesn't work, I'll explain my situation a bit better too. If I specify the url for the sitemap tests as

www.domain.com/sitemap.xml it will fail, but if I take the URL out of the sitemap.xml file and put it into the sitemap test it passes. that is what is strange. I'll be back shortly.\

thanks again,

Aaron
tokenring
Senior Boarder
Senior Boarder
 
Posts: 41
Joined: Tue Nov 03, 2009 3:49 am

Re: XMAP confusion around xml file directory

Postby tokenring » Tue Dec 27, 2011 5:14 pm

so I changed "sitemap=1" to "id=1" in the .htaccess file, but since "sitemap=1" does not exist in my sitemap.xml file, how do I do the find and replace?

Anyway, I removed the sitemap.xml file from the root directory and made the "sitemap=1" to "id=1" changes and now tests pass for Joomla 1.7 sites. I added that comment to the .htaccess file for future reference so I don't get confused. Thanks for the greatly appreciated support. I will rate in forum and donate.

Aaron
tokenring
Senior Boarder
Senior Boarder
 
Posts: 41
Joined: Tue Nov 03, 2009 3:49 am

Re: XMAP confusion around xml file directory

Postby bigbird8 » Thu Dec 29, 2011 3:24 am

Great component and very configurable. I have about 8 sites which could be broken into 2 groups. Thered are 4 Joomla 1.5 sites and 4 joomla 1.7 sites. Out of the eight only 1 passes the sitemap test because http://www.boots-live.com
bigbird8
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Thu Dec 29, 2011 3:20 am

Re: XMAP confusion around xml file directory

Postby tokenring » Thu Dec 29, 2011 12:33 pm

bigbird8 - I would be glad to help you out. I'll show you what I've done also. I have 4 1.5 sites and 4 1.7 sites, so we are in the same boat. Actually 2-3 of mine are still failing which is weird. I had to do an interesting change to get that one to work, so I actually have 2 that are not working.

first of all, what sites are you using for your sitemap tests? Do you see the sitemaps in WMT control panel?

Aaron
tokenring
Senior Boarder
Senior Boarder
 
Posts: 41
Joined: Tue Nov 03, 2009 3:49 am

Previous

Return to General



Who is online

Users browsing this forum: Google [Bot] and 1 guest