homepage Welcome to WebmasterWorld Guest from 54.167.41.199
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

    
For all sitemap lines (URLs), can you just cut out the http://domain.
2kegx




msg:4580981
 9:26 am on Jun 4, 2013 (gmt 0)

For all sitemap lines (URLs), can you just cut out the [domain.com...] and, instead, leave the /page1.html etc etc ?
We have several alias domains, and this would be a LOT easier than having to "commit" to a single one of those domains. This way, without the specific domain, the page 1.html will assume (will it?) whatever alias is being spidered/page1.html.

The other advantage is that we'll only need 1 sitemap, instead of having to do [alias1.com...] before all of the sitemap page lines, and also instead of having to include the links to the other alias domains' sitemaps (which, obviously are identical).

In other words, do we have to put the is it (?) "canonical", I mean the "http://www.alias1.com" before every page, or, can we just start each page with a slash, and the spider will assume the domain it knows it's already crawling?

Thanks. Basically, I tripped across this questoin in converting my site's canonical links (or formal [domain.com...] to without those precursors so that all links work perfectly on ALL of our alias domains for that site...but then I realized, when I did my find and replace (I replaced the [domain.com...] with nothing) that it also replaced all those strings in my sitemap.xml. SO! Question is: will Google's crawler allow a list of pages like:

<url><loc>/page1</loc><changefreq>daily</changefreq><priority>1.00</priority></url>

?

If so, that would save me having to create (actually I already have them) sitemaps for all the alias domains. Simply put, I'd like to just use one sitemap if possible with relative domains. Can I do this?

 

2kegx




msg:4580987
 9:47 am on Jun 4, 2013 (gmt 0)

*** EDIT***

This is a much simpler version of the question: Can sitemaps be done using relative paths? Or only absolute paths? Thanks.

phranque




msg:4582763
 12:39 pm on Jun 10, 2013 (gmt 0)

absolute paths.

http://www.sitemaps.org/protocol.html#locdef
<loc> required URL of the page. This URL must begin with the protocol (such as http) and end with a trailing slash, if your web server requires it. This value must be less than 2,048 characters.



why do you want multiple alias domains crawled by google?

2kegx




msg:4582865
 5:29 pm on Jun 10, 2013 (gmt 0)

Because a ton of users arrive via any of our other domains.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved