Results 1 to 4 of 4

Thread: Sitemap generation including www. in url

  1. #1
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Sitemap generation including www. in url

    My sitemap.xml file is currently being generated in this formatL

    <url><loc>http://mysite.com</loc></url>

    I would like to include th www. for example:

    <url><loc>http://www.mysite.com</loc></url>

    How can I achieve this?

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: Sitemap generation including www. in url

    A site I'm working on creates the xml sitemap with the "www." I wonder if it has anything to do with if you have a www in the url when working in the backend. Have you tried defining the domain in the Site structure?

  3. #3
    User
    Join Date
    06-19-09.
    Posts
    417

    Default SOLVED - Re: Sitemap generation including www. in url

    Hi Ben,

    Yep, I had the domain specified without the www. I have added it now and the sitemap generates correctly.

    Many thanks!!

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: Sitemap generation including www. in url

    I believe that if you leave the domain blank, it will also generate the sitemap with "www."

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •