Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • KK 35 posts 55 karma points
    Jun 29, 2011 @ 04:43
    KK
    0

    Bilis XML Sitemap

    Hello,

     i have installed this package and got xml sitemap but in that i found code as below:

    " urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9             http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

    <url><loc>http://u1test.dadabhagwan.org.peppermint.arvixe.com</loc><lastmod>2011-06-27T21:26:44+00:00
      </lastmod></url>

    <url><loc>http://u1test.dadabhagwan.org.peppermint.arvixe.comhttp://u1test.dadabhagwan.org.peppermint.arvixe.com/home/</loc><lastmod>2011-06-28T05:09:44+00:00
          </lastmod></url>

    <url><loc>http://u1test.dadabhagwan.org.peppermint.arvixe.comhttp://u1test.dadabhagwan.org.peppermint.arvixe.com/scientific-solutions/</loc><lastmod>2011-06-25T02:05:58+00:00
          </lastmod></url>

    here domain name is repeated two times so not able to understand the reason behind this. can you guide please?

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 29, 2011 @ 08:36
    Kim Andersen
    0

    Hi KK

    Which package have you installed?

    And maybe you could show us your code, so that we can see if everything is okay?

    I think that could help us a bit :)

    /Kim A

  • KK 35 posts 55 karma points
    Jun 29, 2011 @ 08:53
    KK
    0

    Hello,

    i have installed Billis xml sitemap package version 2.0 author by carol Gaza.By using that i have generated xml sitemap and in that sitemap i got the code which i had specified in previous post.

     

     

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 08, 2011 @ 11:52
    Tim
    0

    Looking at the source of that package, it's using the server variable SERVER_NAME to get the domain. It looks like there might be a problem with that. Check the configuration of the site in IIS. You can upload a simple aspx page with Response.Write(Request.ServerVariables["SERVER_NAME"]); to the site and see what the returns if it's the two domains, you know its the server. If that works fine its something to do with the package. But from looking at the code for the Macro, it looks like its the server!

    Hope that helps.

    :)

  • KK 35 posts 55 karma points
    Jul 08, 2011 @ 13:17
    KK
    0

    Hello,

    i have checked on my server by the way which you had shown and it returns one domain name ..that means it is not due to server..

    One thing want to tell you that we have specified host name. is it due to that sitemap is showing two domain name? if it is due to that then what will be the solution for the same?

     

     

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 08, 2011 @ 15:15
    Tim
    0

    In your umbracoSettings.config file, do you have the useDomainPrefixes set to true?

  • KK 35 posts 55 karma points
    Jul 08, 2011 @ 16:17
    KK
    0

    yes.. in umbracosettings.config file have set useDomainPrefixes to true.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 08, 2011 @ 16:22
    Tim
    0

    Ahah! Right, in the XSLT file for the Macro, there's the line of code that writes out the url, that looks like this:

    <loc>
        <xsl:value-of select="$url"/><xsl:value-of select="umbraco.library:NiceUrl(@id)"/>
    </loc>

    Just change it to:

    <loc>
        <!--<xsl:value-of select="$url"/>--><xsl:value-of select="umbraco.library:NiceUrl(@id)"/>
    </loc>

    And you should just get the one URL. Its because you have that setting set to true, so its already putting the URL into the link, so the first part isn't required. Hopefully that should fix the issue for you!

    :)

  • KK 35 posts 55 karma points
    Jul 08, 2011 @ 16:32
    KK
    0

    Hello,

    Great! It works..Thanks a lot!

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 08, 2011 @ 16:33
    Tim
    0

    No problems! Glad I could help.

    :)

Please Sign in or register to post replies

Write your reply to:

Draft