• Welcome to Sitemap Generator Forum.
 

Mobile website on a subdomain

Started by paypal1350, June 18, 2014, 05:05:55 PM

Previous topic - Next topic

paypal1350

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 [ External links are visible to forum administrators only ]

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

XML-Sitemaps Support

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.

paypal1350

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

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 ]