Jump to content
JASPER

Site Map for Sub Domains

Recommended Posts

Is it necessary to have a site map for a mobile version sub domain?

Would the URLs go on the root of www.mainsite.co.uk with the others or in the root of the sub domain www.m.mainsite.co.uk and contain just the m./mainsite.co.uk/pages

Share this post


Link to post
Share on other sites

Here ya go, right from Google:

A Mobile Sitemap uses the Sitemap protocol, along with a specific tag and an additional namespace requirement. Note that the Mobile Sitemap format is changing. We recommend that you update your Mobile Sitemaps to the format below as soon as you can.

 

...•A Mobile Sitemap can contain only URLs that serve mobile web content. Any URLs that serve only non-mobile web content will be ignored by the Google crawling mechanisms. If you have non-mobile content, create a separate Sitemap for those URLs....

Add mobile URL information to a Sitemap https://support.google.com/webmasters/answer/34648?hl=en

Share this post


Link to post
Share on other sites

Thanks for that.
To be clear, the mobile site map would just have the mobile pages in it and be as:

 
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="[url=http://www.sitemaps.org/schemas/sitemap/0.9]http://www.sitemaps.org/schemas/sitemap/0.9[/url]"
xmlns:mobile="[url=http://www.google.com/schemas/sitemap-mobile/1.0]http://www.google.com/schemas/sitemap-mobile/1.0[/url]">
<url>
<loc>[url=http://m.example.com/article100.html]http://m.example.com/article100.html[/url]</loc>
<loc>[url=http://m.example.com/article101.html]http://m.example.com/article101.html[/url]</loc>
<loc>[url=http://m.example.com/article102.html]http://m.example.com/article102.html[/url]</loc>
<loc>[url=http://m.example.com/article103.html]http://m.example.com/article103.html[/url]</loc>
<mobile:mobile/>
</url>
</urlset>

 
Saved as sitemap.xml file in the same webspace folder as the mobile html pages?

Edited by WiseWebmaster

Share this post


Link to post
Share on other sites

Saved as sitemap.xml file in the same webspace folder as the mobile html pages?

I am not a Sitemaps expert but shouldn't it have a different name than your main Sitemap? That is the impressions I got from the referenced article above.

Share this post


Link to post
Share on other sites

I have two separate webspaces.

 

One for the main website and one for the sub domain.

I am not sure if each can have separate .htaccess file and site maps.

 

The site map URLs would be www.mysite.co.uk/sitemap.xml

and m.mysite.co.uk/sitemap.xml

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×