Mobile website on a subdomain
« on: June 18, 2014, 05: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, 05:07:46 PM by paypal1350 »
Re: Mobile website on a subdomain
« Reply #1 on: June 19, 2014, 12:14:07 PM »
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.
Re: Mobile website on a subdomain
« Reply #2 on: June 19, 2014, 12:56:30 PM »
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)?

Re: Mobile website on a subdomain
« Reply #3 on: June 19, 2014, 01: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 forum administrators only ]
Re: Mobile website on a subdomain
« Reply #4 on: June 20, 2014, 11:21:21 AM »
Hello,

yes that line is used to specify valid sitemap location for the website.