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.
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!
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?
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!
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?
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
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.
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.
:)
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?
In your umbracoSettings.config file, do you have the useDomainPrefixes set to true?
yes.. in umbracosettings.config file have set useDomainPrefixes to true.
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!
:)
Hello,
Great! It works..Thanks a lot!
No problems! Glad I could help.
:)
is working on a reply...