valuationbreak evenprofitcontributionforecastshiftqueuingbusiness analysis
accountbasbudgetBAS-I.Cshare valueshort salesinvestment
site mapform1
Browse All Question and Answer Items
Items selected where Item is 10298
Questions & Answers
Q: I need to know how to exclude both whole directories and specific files for the sitemap. For instance, I have directories that I do not want crawled under my domain, and I need to exclude all listings in a directory (such as under ./directory/admin), and I have a mix of http & https files on my site. Google is giving me an error as the sitemap is listing all protocols in the same sitemap and this is not a valid listing (according to google).
A: For your sitemap to be Google valid all urls must be of the same domain and protocol. Use the full url for your start url ie ..http://www.mydomain.com/. The first start domain sets the base domain used for the site map. Links that have this (ie ..www.mydomain.com) as the domain or are relative links (which will be given the base domain) will be included in the sitemap. To exclude a secure url (ie ..https://www.mydomain.com) just add https to the Exclude URLs with. Also it is worth remembering ..http://mydomain.com/ is different to ..http://sub.mydomain.com/ or for that matter ..http://www.mydomain.com/. So if you want to include different sub domains to Google SiteMaps you will need different sitemaps. To exclude a directory you can use the Exclude URLs with ie to exclude the dir directory and files add dir/ to the Exclude URLs with. This would exclude all urls that include dir/ ie everything in the dir/ directory. To exclude a single file in the the dir/ directory such as ..http://www.mydomain.com/dir/mypage.html add dir/mypage.html to the Exclude URLs with. Also the values you set as Include URLs will impact on the urls used. If you set Include URLs with as .htm then only urls with .htm will be included. This removes ..http://www.mydomain.com/gooddir/ but allows ..http://www.mydomain.com/gooddir/mypage.htm or ..http://www.mydomain.com/gooddir/mypage.html.
Question and Answer Item 10298 - Browse All Question and Answer Items