Friday, 19 December 2014 00:35
beggarly

/en/ in xml URL seems to cause problems

An open forum for opinions and general questions

/en/ in xml URL seems to cause problems

Postby tokenring » Wed Dec 28, 2011 10:28 am

Hi! ;-)

I've got the other sitemap issue under control now because of the excellent support here. My new issue is:

on 2 different Joomla 1.7.3 sites both running version 2.0RC1 of the component I get different URLs for the xml.

for site #1 when I click the "xml sitemap" link from within the control panel, the URL that is opened is:
http://www.myhandymenonline.com/index.php/en/?option=com_xmap&view=xml&id=1

for site #2 when I click the "xml sitemap" link from within the control panel, the URL that is opened is:
http://www.giznaj.com/index.php?option=com_xmap&view=xml&id=1

When I run SEO tests from these sites against site #1 www.myhandymenonline.com (with /en/ in URL):
http://www.pearanalytics.com
http://www.automapit.com/sitemapvalidator.html
http://www.xml-sitemaps.com/validate-xml-sitemap.html

I get errors like:

No XML sitemap can be found in the root, or through robots.txt (pearanalytics)
Please review your URL to be sure that it links to your sitemap. We were unable to find a sitemap using the URL you entered. (automapit)
Error: can't retrieve "http://www.myhandymenonline.com/sitemap.xml": 303 See other (xml-sitemaps)


for site #1 (www.myhandymenonline.com) which has problem, I have entry in .htaccess file for sitemap.xml file as:
########## Begin - sitemap.xml for root directory SEO tests
# in RewriteRule use "id=1" for 1.6/1.7 sites and "sitemap=1" for 1.5 sites
# enable to allow SEO tests to see sitemap.xml in root directory
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&id=1&view=xml
########## End - sitemap.xml for root directory SEO tests


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

</sitemap>
</sitemapindex>


The syntax I'm using in the .htaccess file and sitemap.xml file is the same for other working sites. How come /en/ is being added to URL of xml sitemap? Is that what is causing the error messages when running the tests?

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

Re: /en/ in xml URL seems to cause problems

Postby tokenring » Wed Dec 28, 2011 9:07 pm

xml-sitemaps also say this when the test is run:

Target: http://myhandymenonline.com/sitemap.xml
(Real name: http://www.myhandymenonline.com/index.php/en/sitemap.xml
Server: Apache)The target was not assessed
tokenring
Senior Boarder
Senior Boarder
 
Posts: 41
Joined: Tue Nov 03, 2009 3:49 am

Re: /en/ in xml URL seems to cause problems

Postby tokenring » Mon Jan 02, 2012 7:56 am

fixed. it was the language filter that was being enabled which caused the error. There does need to be some investigation though.
tokenring
Senior Boarder
Senior Boarder
 
Posts: 41
Joined: Tue Nov 03, 2009 3:49 am


Return to General



Who is online

Users browsing this forum: No registered users and 1 guest

cron