I downloaded the DMZ Google Sitemap Generator.
My issue: I have a lot of websites set up in my hosting, using multiple folders for each website location.
When I set up the site server in DW I usually use the IP address as the ftp address and the folder name as the root directory.
Example of server setup:
Site is samplesite.com, but I don't use that in server setup.
root directory: samplefolder
Then the web url line in the server window looks like this: 126.96.36.199/samplefolder/
When I generate a sitemap it uses 188.8.131.52/samplefolder/ as the location - <loc> rather than the website domain name.
Is that ok?
I got into doing this setup when I was having trouble using the web domain as the ftp address. And http://samplesite.com/samplefolder/ just didn't make sense to me in the web url line of the server setup.
Your FTP server can be an IP address. However, a web URL is ideally the canonical name for your website - usually your domain name, followed by the path of the root directory of that specific site.
For sitemaps, you should be using the domain name in the <loc> location, not the IP, for best results.
I reset my ftp settings to use the regular domain name, so the Dreamweaver Google sitemap generator extension would create the correct code. The sitemap used http://samplesite.com/ without any root directory info. Is that ok?
The sitemap used http://samplesite.com/ without any root directory info.
Is that where your files reside? Since you said you manage multiple sites, I was thinking you'll have subfolders within your parent domain name, something like this:
Each of those folders containing their relevant website files.
But, if this is not the case, if all files you're uploading reside on samplesite.com, your sitemap using http://samplesite.com on the <loc> location is perfect.
However, the site for which you're creating the sitemap resides in samplesite.com/site1 or something like that, your sitemap location should show <loc> location as http://samplesite.com/site1
Trust this helps.
I have a master hosting account (call it host.sample.com) that is not a website. There are subdirectories within that with a website in each one. So the website sample.com is within a directory called 1sample. I think I must be able to use the regular http://sample.com address for the sitemap. I'll check with my hosting company.
Absolutely. Don't confuse your Master hosting account with individual domain names.
Even though you manage multiple sites, if you have individual domain names for all of them, your sitemap <loc> should point to the parent domain name. That will work just fine.
In fact, even for your FTP server host info, you can actually use individual domain names - that will work just fine. You may want to try it out for one of your domains. Easier, instead of configuring using a master IP or a master domain and adding a 'subfolder' to the web path.