XML Sitemaps Generator

Author Topic: Mobile website on a subdomain  (Read 5618 times)

paypal1350

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Mobile website on a subdomain
« on: June 18, 2014, 04:05:55 PM »
Hi,

I hope someone can help.

I have one website that also has a mobile friendly version.

The desktop website resides in an httpdocs folder, this is where I have installed the Sitemap generator.

However, the mobile version is in another folder outside the httpdocs folder called mobile. In Plesk I have set up a subdomain that forwards to this mobile folder. This subdomain is called m.mydomain.co.uk

I am not sure what route to take regarding setting up Sitemap generator:

1. Do I set up one installation and set up a mobile sitemap with an inclusion mask. If so, I assume I could only use a full path name within this inclusion mask such as:
/var/www/vhosts/mydomain.co.uk/mobile
Even if this can be undertaken, the main problem I foresee with this is the mobile sitemap will reside in desktop domain folder and not the mobile subdomain.

Or do I do:

2. Create two installations, one in the httpdocs folder and one in the mobile folder. If this is the correct method, then I would only want the mobile version of the sitemap in the mobile folder, so how do I stop a normal xml sitemap being created within this subdomain as well?

Obviously if there is a better method then either of these two, I am happy to undertake it.

Thanks
« Last Edit: June 18, 2014, 04:07:46 PM by paypal1350 »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Mobile website on a subdomain
« Reply #1 on: June 19, 2014, 11:14:07 AM »
Hello,

I would recommend to do 2 installations, with the second one pointing to mobile subddomain. Normal sitemap is always created but it can be ignored.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

paypal1350

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: Mobile website on a subdomain
« Reply #2 on: June 19, 2014, 11:56:30 AM »
Thanks for this. However, I am a bit confused when you say:

'Normal sitemap is always created but it can be ignored'

What I don't understand is how this can be ignored. For example, if I leave checked 'Ping Search Engines on Completion' won't this then notify the Search Engines with the Normal Sitemap which has been created (which I don't want) AS WELL as the mobile version (Which I do want)?


paypal1350

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: Mobile website on a subdomain
« Reply #3 on: June 19, 2014, 12:58:50 PM »
In reply to my question above, so I can ignore the xml feed I do not need, would I add into the robots.txt file in the sub domain the relevant code that would point to the mobile xml feed, for example:

User-agent: *
Sitemap: [external links are visible to admins only]

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Mobile website on a subdomain
« Reply #4 on: June 20, 2014, 10:21:21 AM »
Hello,

yes that line is used to specify valid sitemap location for the website.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2