1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to write sitemap.XML to add second domain?

Discussion in 'Domain Names & Parking' started by Derppppp, Jan 19, 2017.

  1. Derppppp

    Derppppp Newbie

    Joined:
    Jan 19, 2017
    Messages:
    4
    Likes Received:
    0
    I have two domains and I need help with adding the 2nd website to the sitemap.XML file. Here is what it says
    I
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="bhttp://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
    <loc>website address removed</loc>
    <priority>1</priority>
    </url>
    </urlset>

    What should it say of I'm adding the 2nd website????? I searched google but couldn't find the answer and the cpanel forum was no help because its dead over there.
     
  2. Derppppp

    Derppppp Newbie

    Joined:
    Jan 19, 2017
    Messages:
    4
    Likes Received:
    0
    Its like one sentence of code I'm missing...
     
  3. Derppppp

    Derppppp Newbie

    Joined:
    Jan 19, 2017
    Messages:
    4
    Likes Received:
    0
    Ok, does anybody know of a different forum where I should ask this question and get the answer????
     
  4. RoiBox

    RoiBox Regular Member

    Joined:
    Apr 4, 2009
    Messages:
    237
    Likes Received:
    161
    Occupation:
    Internet Entrepreneur
    Location:
    Gothenburg | Sweden
    Home Page:
    A small tip, Google does not like/approve of this behavior and you will probably end up getting punished for it, just don´t do it.
     
  5. Derppppp

    Derppppp Newbie

    Joined:
    Jan 19, 2017
    Messages:
    4
    Likes Received:
    0
    Yeah you're definitely mistaken. You don't know what you're talking about at all.
     
  6. RoiBox

    RoiBox Regular Member

    Joined:
    Apr 4, 2009
    Messages:
    237
    Likes Received:
    161
    Occupation:
    Internet Entrepreneur
    Location:
    Gothenburg | Sweden
    Home Page:
    So just do it and don´t wine about it, surely you can write a xml file when you know what is right and have the knowledge?
     
  7. daica85

    daica85 Regular Member

    Joined:
    Jun 19, 2010
    Messages:
    455
    Likes Received:
    94
    Gender:
    Male
    Occupation:
    Freelancer
    Location:
    US
    Home Page:
    I think only one website on 1 sitemap, I'm not sure what does GG think if you put 2 websites in the same sitemap.
     
  8. chillerfx

    chillerfx Jr. VIP Jr. VIP

    Joined:
    Mar 20, 2012
    Messages:
    218
    Likes Received:
    47
    Occupation:
    Web-developer and Digital Marketer.
    Location:
    Everywhere on net.
    You can't be able to use more than one domain in sitemap.xml.

    sitemap allows to add URL from its own domain only, not even does it allow to include URL from its sub domain.

    Example, If your sitemap is located at http://www.example.com, It can't include URL from its http://sub.example.com