Search Engine Sitemaps

by: Jacob Khan

Another module has been added to our Open Source initiative. Search Engine Sitemaps is the old EPiGoogleSitemaps but now you can make your own changes that fits your needs. The project can be found on epicode.

This module makes it easy for search engines to index your site. An XML sitemap is generated showing what pages the site contains and when they last were changed. It also shows how important the page is and how often it is changed. The two latter are saved in the sitemap file depending on a property (dynamic or regular) put on each page.

If you decide to use a dynamic property this can have negative influences to your sites performance. But in this case you do not want to choose each page and set the property on that single page. The inheritance that comes with dynamic property makes the module easier to use.

Add a dynamic property to your site called SearchEngineSitemaps of type SearchEngineSitemaps.

There are 7 settings you can set for showing how often a page is changed.
searchenginesitemaps8

You can also set what priority the page has by choosing one of these

searchenginesitemaps2

When you set these values be sure to be honest. Don't set everything to High Priority and always changing unless it does change.

In the admin mode you can now test it by clicking testsearchenginesitemaps4

An index file is now generated showing where the sitemap file is. (for sites larges than 5000 pages several sitemap files are in the index.

searchenginesitemaps5

The end results.

searchenginesitemaps7

Dont forget to add the link to the sitemapindex file in the robots.txt as following:

Sitemap: http://labs.episerver.com/EPiGoogleSitemaps.SiteMapIndex.aspx

 

This module has only been tested with a site as large as world.episerver.com and since the sitemap is created on the fly performance on your site may suffer.

To download the module go to epicode

Best Regards

Jacob Khan

30 January 2009


Comments

  1. Excellent, thanks. I've done this with a EPiServer website lately, but will check this out next time!
  2. Hi I'm unable to download the source code from EpiCode. It says something about FILE_VIEW permissions.
  3. You need to register on the site to download source code
  4. You also need to make sure that file permissions are set up correctly on the folder where episerver is installed. Or else you'll get an access denied error when you click test and you can only see this error if you view the source of the page.
  5. Hi, If I install this module, is there any way I can uninstall this from Episerver?
  6. U can always just delete the files in the folder. bin, googlesitemaps.
  7. Hi. Nice initiative! I installed the module, created the dynamic property and activated it for all the pages. I am now trying to run ... http://localhost/SearchEngineSitemaps.SiteMapIndex.aspx ... from Epi-admin by clicking "Provkör", but the sitemap structure will not update. Nothing happens. Have I missed some basic stuff? :) :) :)
  8. Oh yes I had missed some basic stuff. Sorry. Now it works just fine. It would have been nice, though, if only pages with status "published" were fetched by the sitemap. Is there a update coming up or should i modify the project?
  9. Feel free to submit your code to coderesort. The published code you are right. Doesnt change anything for google as they still wont be able to crawl them if they are unpublished. They would render 404. Please add the code on coderesort.
  10. Hi, I get an popup with login to the epi when try the link to sitemap index. /Hamid
  11. Hi Hamid, the page should be public. Could u email me your site specifications and url. jacob at episerver dot com
  12. I try to test by clicking "Prov kör" Now the login problem is fixed but when I try to click on "Provkör" I don't see any registerid sites. I use dynamic property and have everyting is done by the book as is explained here. my sitemap looks like this when i try - - http://www.stromma.se/SearchEngineSitemaps.SiteMap.aspx?SiteMap_0_.xml 2009-10-29T15:28:34+01:00
  13. and the siteMap_0_.xml is like this
  14. I'm trying to set the default value for SearchEngineSitemaps in a pagetype, but there's only a textbox for enterint the default value. I want to set the default value for the pagetype to "Enabled", "Always", "0.5". What should I enter in the default value textbox?
  15. Hi, I have a problem with this getting work for my other sites in same epi. It works with first site but it ends for other sites.
  16. Does anyone has experience of using SearchEngineSitemaps in conjunction with PageTypeBuilder? I've integrated the SearchEngineSitemaps code into to my solution, and have added a property of type SearchEngineSitemaps to my base page type. If I build the solution and request a page, I get the error: "Unable to map the type for the property SearchEngineSitemaps in BasePage to a suitable EPiServer CMS property." In order to get rid of this error I have to remove the property from the page type, rebuild, load a page (no error this time), replace the property in the base page type, rebuild and reload - now there is no error and the property is available in Edit mode. I think it's something to do with PageTypeBuilder but I haven't figured it out yet.
  17. I only get the Page could not be loaded error when I try to test the url. :\ Which file permissions is it that I've missed? =\ network service has access, is there supposed to be something else? I'm obviously doing something wrong here...
  18. I am not sure but the asp.net account accessing the information. For instance IUSR depending on server and iis
  19. Thank you so much for the quick answer, but I actually found what was wrong. The directory "SiteMaps" was missing. I downloaded and installed the one for CMS 6.0 if that helps... Maybe it tries to create it, but failed, so it was a a permission issue. But maybe it's worth looking into :) I'll play around with it a lil bit now that I got it working... see if I can get it to actually make a decent xml :P Thanks again!
  20. I get the xml file now.. but it only have the tag in it... Do I need to actually force it to build? I used some random text in the dynamic property, and made sure it get inherited by the children. But still no pages show up... Can I force it to rebuild the xml somehow?
  21. Hi there. We have a multiple domain solution that has this module (implemented by our previous supplier). I have the following problems: 1) You have to browse to the sitemap index for the sitemaps to be generated. I.e: http://sub1.domain.com/SearchEngineSitemaps.SiteMap.aspx?SiteMap_0_.xml will not work until you've generated the file by browsing to: http://sub1.domain.com/SearchEngineSitemaps.SiteMapIndex.aspx 2) also the files generated doesn't seem to be per domain, so: http://sub2.domain.com/SearchEngineSitemaps.SiteMap.aspx?SiteMap_0_.xml will show contents from sub1 site instead of sub2 content. is there a setting that I've missed, or do I need to modify the code to fix this? Thanks
  22. hmm.. line breaks in comments not translated to HTML, so my comment is more readable if you check the page source :)
  23. The above mentioned problem, made me decide to write my own sitemap generator instead. The links for each domain easily fits within one xml sitemap, so no need for this one. Reused the settings in EPi to not confuse the users.
  24. Hi Jocob, hope this thread is still alive. We are using Episerver375_133, I just installed this module, there seem to be some problem, says [missing text #heading for no] in the admin page: http://i.imgur.com/brhqq.png That's not correct is it? And I was wondering, is there any like step-by-step tutorial abt using this module? Thx
  25. @lei: you could make a norweigan language branch in the xml file "SearchEngineSitemaps.xml" in the lang folder of your project, and copy the structure of the english & swedish branch and translate it. Or change your own settings to english.
Post a comment    
User verification Image for user verification  
Jacob Khan

About me

I am a researcher at EPiServer based in Stockholm. I started working in the Research department in May 2008.
I also blog on world.episerver.com
See my profile card on world

 

Syndications


Archive


Tag cloud

EPiTrace logger