Google Site Map Issue

ANKIT Mistry asked on June 16, 2014 10:23

Hi,

We are Creating a new E Commerce Site, for this if we type "http://sitename/googlesitemap.xml" - it is showing "404 - File or directory not found." but when we type "http://sitename/cmspages/googlesitemap.aspx" it is showing yellow background with message :

"XML Parsing Error: XML or text declaration not at start of entity Location: http://217.160.133.174/cmspages/googlesitemap.aspx Line Number 3, Column 1:"

<?xml version="1.0" encoding="UTF-8" ?> ^

Can anyone help in this what wrong we are doing here ?

Please

Thanks Ankit.

Recent Answers


ANKIT Mistry answered on June 16, 2014 11:05

Hello,

The issue of "http://sitename/cmspages/googlesitemap.aspx" : "XML Parsing Error: XML or text declaration not at start of entity Location: http://217.160.133.174/cmspages/googlesitemap.aspx Line Number 3, Column 1:"

i have resolved above issue.

Now only we are facing is : http://Sitename/googlesitemap.xml this link is showing "404 - File or directory not found."

can anyone help in this what wrong we are doing here ?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 16, 2014 11:47

Ideally what you'll want to do is create a page in your content tree. Many already have a /Sitemap page that is a visual for visitors, so create something like /Global/Sitemap. On that page, place the XML Sitemap webpart. In there you can set the properties you'd like, like which doc types to select, where in the node to start, a transformation, etc. This webpart offers more properties than the basic /CMSPages/GoogelSitemap.aspx.

Then after you have configured that webpart go into the Settings application and find URLs & SEO. In there set the Google Sitemap path property to the /Global/Sitemap page (or whatever you called it) and it will automatically serve up the sitemap on that page when someone requests /googlesitemap.xml.

0 votesVote for this answer Mark as a Correct answer

ANKIT Mistry answered on June 16, 2014 11:58

Hi Brenden,

Actually we are using Kentico 6.0 And we have other 2 E-Commerce Sites in which we did not make any special pages for that. We just added our required class names in CMSPages/GoogleSiteMap.aspx and in SiteManager > Settings > URLs and SEO >> in "Google sitemap URL" : there is "googlesitemap.xml" In other 2 sites if we write "http://sitename/googlesitemap.xml" it is working but not in our new site.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 16, 2014 23:31

It's not recommended you modify base Kentico pages, which is why the method I suggested would work better. This way it's managed within the Content tree and not in code. The XMLSitemap webpart isn't available in v6 but I'm sure it could be converted from v7 to work with your needs.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.