More in this section

Forums / Developing with Sitefinity / SEO optimization

SEO optimization

8 posts, 1 answered
  1. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    02 Feb 2010
    Link to this post
    Hello,

    I try to embed the seo optimization sample from you market place but rewriting of sitemap.xml to sitemap.xml.ashx does not work.
    I get 404 error when trying to brows [sitename]/sitemap.xml.ashx or [sitename]/sitemap.xml

    This is my urlrewrite statement.

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

    Does anyone know what i'm doing wrong?

    Thanks

    Mart
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    02 Feb 2010
    Link to this post
    Hello Mart,

    Please make sure that the UrlRewriter is enabled for Integrated mode (the Marketplace instructions explain only the Classic mode configuration). In other words, the UrlRewrite module should be placed in system.webServer/modules section as well:

    <system.webServer>
       <validation validateIntegratedModeConfiguration="false" />
       <modules>
        ...
         <add name="Cms" type="Telerik.Cms.Web.CmsHttpModuleUrlRewrite, Telerik.Cms"/>

    By the way, the correct rule should look like this: 

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

    The dot (.) should be escaped. 

    I tested this on my side and it works perfectly.

    All the best,
    Georgi
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    02 Feb 2010
    Link to this post
    Hello Georgi,

    thanks for your quick response.
    I did indeed already do that but it still does not work at my site
    any suggestions?

    Mart
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    02 Feb 2010
    Link to this post
    Hi Mart,

    Please check if wildcard mapping is added - it's possible that XML requests do not reach asp.net and therefore Sitefinity, but are only processed by IIS.  

    Greetings,
    Georgi
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  5. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    02 Feb 2010
    Link to this post
    Hello Georgi,

    can you please tell me how to do that?
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Feb 2010
    Link to this post
    Hi Mart,

    The following article should help - http://learn.iis.net/page.aspx/508/wildcard-script-mapping-and-iis-7-integrated-pipeline/

    It provides information about adding wild card mapping, which means that all requests will be processed by asp.net at some point. This will allow XML requests to reach asp.net as well. The article is also explaining how you could do it for every version of IIS. 

    Let us know if you need further help. 

    Regards,
    Georgi
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Feb 2010
    Link to this post
    Hi Mart,

    Just a quick follow up - I've just noticed that there is a robot.txt entry which is telling the spiders and web crawlers which sitemap file to use. In this case the entry is:

    Sitemap: http://namesite/sitemap.xml.ashx

    which means that you could leave it without rewriting - the crawlers will be informed which sitemap url to use.

    Regards,
    Georgi
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
    Answered
  8. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    03 Feb 2010
    Link to this post
    Thsnks,

    that was the clue

    Mart
Register for webinar
8 posts, 1 answered