Forum Moderators: open
The hosting company's (apache) server forwards: www.example.com/directory to: directory/example.com
I'm also using a RedirectMatch 301 rule in htaccess to move this directory's pages accordingly. Everything works as expected.
Question: When I add these directory pages to the sitemap.xml...
Do I add them like this:
<url><loc>http://www.example.com/directory</loc>blah... blah...
<url><loc>http://www.example.com/directory/1.html</loc>blah... blah...
<url><loc>http://www.example.com/directory/2.html</loc>blah... blah...
Or like this?
<url><loc>http://directory.example.com</loc>blah... blah...
<url><loc>http://directory.example.com/1.html</loc>blah... blah...
<url><loc>http://directory.example.com/2.html</loc>blah... blah...
Or do I create a new sitemap.xml for just this directory?
Cross-site submissions will work only if all sites have been verified in Webmaster Tools, or if your Sitemaps are listed in your robots.txt file.
subdomains are considered "cross-site", as discussed at length here:
[webmasterworld.com...]
if your subdomains are verified as Google suggests, you can put your sitemap XML anywhere you like.
Otherwise, you should put a separate sitemap XML in each subdomain.
I would definitely use the redirected subdomain URLs, since those are the canonical URLs for those pages
^ that is a subdomain. "example" is the domain, "directory" is the subdomain. "com" is the TLD.
[en.wikipedia.org...]
Sorry if I misunderstood your question