+1-888-365-2779
Try Now

SEO optimization

by Bigdata.ru
Publication date:
Nov 9, 2009, 17:02 PM

Version:
1.0

Compatibility:
  • Sitefinity 3.7

Price: $ 0

Auto generation sitemap file

1. Copy file websitemap.xml.ashx root web-folder

2. Test result http://namesite/sitemap.xml.ashx

3. Use robots.txt to announce Sitemap to Search Engines (http://www.sitemaps.org/protocol.php#informing)
Add the following line changing namesite with your domain name:
Sitemap: http://namesite/sitemap.xml

4. Add URL Rewriting http://namesite/sitemap.xml to http://namesite/sitemap.xml.ashx

4.1. Add a configuration section element <configSections>:
<configuration>

<configSections>to
<sectionGroup name="telerik">

<section name="urlrewrites" type="Telerik.Cms.Web.AdvancedUrlRewriter, Telerik.Cms"/>
</sectionGroup>
</configSections>

4.2.In the <httpModules> section, replace the default CmsHttpModule with CmsHttpModuleUrlRewrite (shipped with Sitefinity)
<httpModules>
<add name="Cms" type="Telerik.Cms.Web.CmsHttpModuleUrlRewrite, Telerik.Cms"/>
</httpModules>

4.3. Set up your rules. Add an <urlrewrites> section:
<configuration>
<telerik>

<urlrewrites>
<!-- Add your rule elements here -->
<rule>
<url>sitemap.xml</url>
<rewrite>sitemap.xml.ashx</rewrite>
</rule>
</urlrewrites>

5. Test result http://namesite/sitemap.xml