I have just run into a strange situation using xsitemap.com to generate a sitemap for a simple two-page site of mine.
Instead of the two URLs that I would have expected to see, there are four entries in the file:
The domain name is first listed both with and without a trailing '/' character.
The second page is listed next (as expected).
The main page is listed yet again with its 'index.html' file name preceded by the domain name and a '/' character.
I'm thinking that I should strip out two of the three entries for the main page, I'm not sure which one of them I should keep: Domain without '/'? Domain with '/'? Full one with 'index.html'?
Does anyone have any suggestions?
<added>
I tried to use their 'Contact' page to get more information. The 'Submit' button resulted in a 404 error.
An email sent to their webmaster address bounced with a 'no such address' message.
</added> You should go for without '/ ' However it doesn't matter which one you pick without '/ ' or with '/ ' because Google consider both as same. I personally refer you the first one. Quote: site map is update weekly or monthly whic is good ??? It depend on your update. If this page always has fresh and unique content maybe you should choose daily or weekly. And If no change for a long time you can choose weekly. Why are you using a Sitemap for a 2 page site? Quote: Originally Posted by HTMLBasicTutor Why are you using a Sitemap for a 2 page site? While posting a sitemap is certainly overkill for such a small site, I try to maintain consistency across all of my sites. They all have xml sitemaps, regardless of size. (The smaller ones, of course, don't have HTML sitemaps.)
Since I had been using xsitemap.com for my larger sites, I just wanted to try it out for the smaller one as well. I was caught a bit off-guard by the file that it generated. The unexpected results raised the question in my mind as to what's the preferred way to list a site's main page: 1) plain domain name, 2) domain name with '/', or 3) domain with file name.
Do you know if any particular one of them is considered 'best practice'? Since all of them will work, it's more a matter of curiosity than anything else. Domain name with / will automatically look for your home page (be it index.htm, index.html, or what ever your hosting 1st priority for how your home page in a folder is to be).
You will notice also, that if you type mydomainname.com in the address bar of your browser it adds the / soooo, if someone typed your domain name because they wanted to link to you their address bar will have the /. The more links that look exactly the same pointing to a page the better. Quote: Originally Posted by HTMLBasicTutor You will notice also, that if you type mydomainname.com in the address bar of your browser it adds the / soooo, if someone typed your domain name because they wanted to link to you their address bar will have the /. The more links that look exactly the same pointing to a page the better. Good point. I had forgotten about browsers adding the slash if it's not there. Domain name with '/' sounds like the best way to go. Interesting Bob - have you noticed whether it has done the same for your bigger sites? Might be that it has always been happening with this generator, but when the content of the sitemap is much greater, you have not noticed. we all have seen that most of the site maps have "/". so i think making your site map with "/" will be just great. and HTMLbasictutorial has already described (and we all know ) that browsers will automatically add that / so go for it.
thanks if you do update your sitemap weekly its best and your site content update on daily basis .. Quote: Originally Posted by theitom Interesting Bob - have you noticed whether it has done the same for your bigger sites? Might be that it has always been happening with this generator, but when the content of the sitemap is much greater, you have not noticed. I have to admit - I haven't checked. Since the URLs seem to be listed in no particular order, it's quite possible that such duplicates are buried somewhere in the larger sites' files. I'll have to take a look when I get a chance.
Instead of the two URLs that I would have expected to see, there are four entries in the file:
The domain name is first listed both with and without a trailing '/' character.
The second page is listed next (as expected).
The main page is listed yet again with its 'index.html' file name preceded by the domain name and a '/' character.
I'm thinking that I should strip out two of the three entries for the main page, I'm not sure which one of them I should keep: Domain without '/'? Domain with '/'? Full one with 'index.html'?
Does anyone have any suggestions?
<added>
I tried to use their 'Contact' page to get more information. The 'Submit' button resulted in a 404 error.
An email sent to their webmaster address bounced with a 'no such address' message.
</added> You should go for without '/ ' However it doesn't matter which one you pick without '/ ' or with '/ ' because Google consider both as same. I personally refer you the first one. Quote: site map is update weekly or monthly whic is good ??? It depend on your update. If this page always has fresh and unique content maybe you should choose daily or weekly. And If no change for a long time you can choose weekly. Why are you using a Sitemap for a 2 page site? Quote: Originally Posted by HTMLBasicTutor Why are you using a Sitemap for a 2 page site? While posting a sitemap is certainly overkill for such a small site, I try to maintain consistency across all of my sites. They all have xml sitemaps, regardless of size. (The smaller ones, of course, don't have HTML sitemaps.)
Since I had been using xsitemap.com for my larger sites, I just wanted to try it out for the smaller one as well. I was caught a bit off-guard by the file that it generated. The unexpected results raised the question in my mind as to what's the preferred way to list a site's main page: 1) plain domain name, 2) domain name with '/', or 3) domain with file name.
Do you know if any particular one of them is considered 'best practice'? Since all of them will work, it's more a matter of curiosity than anything else. Domain name with / will automatically look for your home page (be it index.htm, index.html, or what ever your hosting 1st priority for how your home page in a folder is to be).
You will notice also, that if you type mydomainname.com in the address bar of your browser it adds the / soooo, if someone typed your domain name because they wanted to link to you their address bar will have the /. The more links that look exactly the same pointing to a page the better. Quote: Originally Posted by HTMLBasicTutor You will notice also, that if you type mydomainname.com in the address bar of your browser it adds the / soooo, if someone typed your domain name because they wanted to link to you their address bar will have the /. The more links that look exactly the same pointing to a page the better. Good point. I had forgotten about browsers adding the slash if it's not there. Domain name with '/' sounds like the best way to go. Interesting Bob - have you noticed whether it has done the same for your bigger sites? Might be that it has always been happening with this generator, but when the content of the sitemap is much greater, you have not noticed. we all have seen that most of the site maps have "/". so i think making your site map with "/" will be just great. and HTMLbasictutorial has already described (and we all know ) that browsers will automatically add that / so go for it.
thanks if you do update your sitemap weekly its best and your site content update on daily basis .. Quote: Originally Posted by theitom Interesting Bob - have you noticed whether it has done the same for your bigger sites? Might be that it has always been happening with this generator, but when the content of the sitemap is much greater, you have not noticed. I have to admit - I haven't checked. Since the URLs seem to be listed in no particular order, it's quite possible that such duplicates are buried somewhere in the larger sites' files. I'll have to take a look when I get a chance.