Copied to clipboard

Flag this post as spam?

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


  • Evan 344 posts 99 karma points
    Apr 02, 2009 @ 18:54
    Evan
    0

    Google Sitemap

    I have used xslt to create a google sitemap, only question is that it is in an aspx page not the usual xml page, how do I submit an aspx page to google?

  • Leandro Benítez 16 posts 259 karma points
    Apr 02, 2009 @ 19:44
    Leandro Benítez
    0

    I submitted sitemaps to google without problems. Just enter into google webmastertool page, add your site, and in the site left menu click on "Sitemaps". You will find on the right an input box where you can type the name of your sitemap (sitemap.aspx is ok, no problems with the extension)

  • Evan 344 posts 99 karma points
    Apr 02, 2009 @ 19:45
    Evan
    0

    [quote=leandro]I submitted sitemaps to google without problems. Just enter into google webmastertool page, add your site, and in the site left menu click on "Sitemaps". You will find on the right an input box where you can type the name of your sitemap (sitemap.aspx is ok, no problems with the extension)
    [/quote]
    Ok great I was afraid it had to be an xml sitemap extension!

  • mouseball 63 posts 66 karma points
    Apr 03, 2009 @ 02:50
    mouseball
    0

    I've tried this but the holy Goo is telling me:

    Unsupported file format
    Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.


    I suspect this is because I have relative links in the urls so I will try that - however Google is also saying that you should submit a sitemap in xml format following the sitemap protocol:

    [quote]To create a Sitemap based on the Sitemap protocol:

    Create a text file and save it with a .xml extension.
    Add the following to the top of the file:



    Create an entry for each URL. The

  • Dan Diplo 1486 posts 5785 karma points MVP 3x c-trib
    Apr 03, 2009 @ 10:39
    Dan Diplo
    0

    You might need to change the content type the server is putting out (by default it will be HTML). eg
    [code]
    Response.ContentType = "text/xml";
    [/code]

  • dandrayne 1138 posts 2262 karma points
    Apr 03, 2009 @ 12:41
    dandrayne
    0

    Google has happily been eating up the sitemaps we've been creating, using a .aspx extension and with a content type of text/html - using the following header

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    [/code]

    If you're still stuck, you can usually get around the extension issue by creating and using an 'alt template' with a name of filename.xml

    E.g.

    www.yoursite.com/en/page.aspx?altTemplate=InternalFlashBanner.xml

    That should fool them ;-)


  • Karl Kopp 121 posts 226 karma points
    Apr 21, 2009 @ 00:09
    Karl Kopp
    0

    I don't think the encoding matters - have a look at the spec here:

    http://www.sitemaps.org/protocol.php

    Cheers!

  • Karl Kopp 121 posts 226 karma points
    Apr 21, 2009 @ 00:20
    Karl Kopp
    0

    Just having a look at this further, I noticed that my sitemap isn't quite right - its stripping out the first line () and also the namespace. Will dig further.

  • dandrayne 1138 posts 2262 karma points
    Apr 21, 2009 @ 11:12
    dandrayne
    0

    For the sake of convenience, here's my working sitemap code (credit goes to warren and CWS1, I think)

    [code]


    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
    umbraco.library">













    [/code]

    Pop the macro from the xslt above into a template as such (v3 syntax used below)

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">


    [/code]

    and remember to either add a document property of DomainURL or hard code the full domain url into the xslt.

  • Evan 344 posts 99 karma points
    Apr 21, 2009 @ 15:15
    Evan
    0

    I did the google sitemap based on warrens cws1 but google gives me an error that there are spaces at the beginning of the file...

  • praveen 113 posts 164 karma points
    Mar 27, 2012 @ 05:31
    praveen
    0

    HI There,

    I have installed Google Sitemap for Umbraco 4 (jesper.com) package.

    When I try to http://yourdomain.com/GoogleSiteTree.aspx

    I get the following error:

    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    --------------------------------------------------------------------------------
    Invalid at the top level of the document. Error processing resource 'http://nn.gorillahq.com/GoogleSiteTree.aspx'. Line 1,...

    Error parsing XSLT file: \xslt\GoogleSiteTree.xslt
    ^

    Look at the full description here:

    http://our.umbraco.org/forum/getting-started/installing-umbraco/30198-Google-Sitemap-does-not-work

Please Sign in or register to post replies

Write your reply to:

Draft