Results 1 to 9 of 9

Thread: sitemap

  1. #1
    New user
    Join Date
    10-28-10.
    Posts
    8

    Default sitemap

    Hi,

    I have set the sitemap. But I get an error from google. They want to http://www.example.nl/......

    But my sitemap generates http://example.nl/......

    does any one know how to change this ?

    many thanks

    Rob

  2. #2
    New user
    Join Date
    08-16-10.
    Posts
    29

    Default Re: sitemap

    hi... i get that problem too...

    what i did. is to edit the sitemap file... and to put the www in the front... and the up again to the server...

    greetings

  3. #3
    New user
    Join Date
    10-28-10.
    Posts
    8

    Default Re: sitemap

    Thanks,

    but if you update website and I have a webshop than the sitemap get a update by the cron job.
    So I add artikels to the webshop or the site so at a daylay base the sitemap get a update to.

    Is it posible whit a setting ?

    greetings

    Rob

  4. #4
    New user
    Join Date
    01-12-10.
    Location
    Sumy, Ukraine
    Posts
    26

    Default Re: sitemap

    As a solution, go to Goole Webmaster, then remove your site
    Code:
    www.your-site.com
    and add new as
    Code:
    your-site.com
    - without www.

    Then in Sitemaps section add your sitemap.
    Code:
    your-site.com/sitemap.xml
    P.S.: it works, but prefix www should be auto-generated in Contao. I don't know how to do this without coding. So, if someone knows how to, please, write the answer.

  5. #5
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: sitemap

    When you are loged in at your side with www. and you remake your xml, you will have www.bla.com in your xml-File ;-)

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  6. #6
    New user
    Join Date
    10-28-10.
    Posts
    8

    Default Re: sitemap

    :P

    Tanks,

    it's soo easy

  7. #7
    New user respinar's Avatar
    Join Date
    09-17-10.
    Location
    Tabriz, Iran
    Posts
    14

    Default Re: sitemap

    You can also edit .htaccess file
    Code:
      ##
      # Uncomment the following lines and replace "domain.com" with your domain
      # name to redirect requests without "www" to the correct domain. 
      ##
      #RewriteCond %{HTTP_HOST} ^domain\.com [NC]
      #RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    by removing # from last tow line and replaceing domain.com with your own.

    It slove your problem forever in you want to have www in your website domain.
    Hamid Abbaszadeh
    https://respinar.com

  8. #8
    User
    Join Date
    10-05-10.
    Location
    Austin, TX USA
    Posts
    30

    Default Re: sitemap

    Hello,

    I am having similar problems and they are causing Webmaster tools to report that none of our URLs are in the index even though I can clearly see that we have 1,390 results in the index when I search google with the "site:" prefix.

    Our .htaccess file is set up with the correct redirect rule so that visitors reach the www version of the site, and in the settings of the root page we have the "Add www. to domain name" option checked.

    I have logged into the www version of the site and disabled and enabled the sitemap, and even purged data from the maintenance page, but none of that helped - my sitemap is still being generated with out the www part of the domain.

    I have no problem editing a fie if that's necessary, but have no idea what file to edit, or even what part to edit.

    Please help!

    Greg

  9. #9
    User
    Join Date
    10-05-10.
    Location
    Austin, TX USA
    Posts
    30

    Default Re: sitemap

    Okay, I finally figured out that if I leave the website blank in the DNS settings of the website root that the correct URLs get created in the sitemap.xml file.

    Not very intuitive, but it works!

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
  •