Hi.
Yes, you can generate the sitemap and place it an arbitrary location -
another domain even.

You provide a path to the sitemap in the robots.txt (which is located on
our real domain)

By doing so you have proven ownership of the domain and can basically host
the sitemap on any path/domain.
http://www.sitemaps.org/protocol.html#location

For google you can also use the webmaster tools for domain verification and
can also upload the sitemap.

best
Magnus



On Tue, Jun 3, 2014 at 8:30 AM, Lance Java <[email protected]>
wrote:

> Another couple of options :
>
> 1. Assuming you're building with maven and you don't have an Index page at
> root, save sitemap.xml to src/main/webapp and maven will add it to the root
> of your war. Note that this file is considered read only one your app has
> started.
>
> 2. Use an index page. If the page activation context is sitemap.xml, return
> a textstreamresponse containing the sitemap (classpath?).
>  On 3 Jun 2014 03:01, "George Christman" <[email protected]> wrote:
>
> > Hi guys, I'm trying to automatically generate my sitemaps and I'm having
> a
> > difficult time trying to figure out how to read/write to it. I currently
> > have it in the root of my class path, is this the correct location? If
> so,
> > how do I read/write to it?
> >
> > I'm using sitemapgen4j and this example
> > http://www.codingpedia.org/ama/generate-sitemaps-with-sitemapgen4j/
> >
> > --
> > George Christman
> > www.CarDaddy.com
> > P.O. Box 735
> > Johnstown, New York
> >
>

Reply via email to