valuationbreak evenprofitcontributionforecastshiftqueuingbusiness analysis
accountbasbudgetBAS-I.Cshare valueshort salesinvestment
site mapform1
Browse All Question and Answer Items
Items selected where Item is 423
Questions & Answers
Q: Hi - Great sitemap generator. I have a couple of issues and I'm not sure if it's me, the configuration or the script :( . When I try to create a sitemap I get urls that seem to include '..' which doesn't look right and where it is chopping off a couple of directories.
A: Thanks for the feedback. Your problem is most likely due to the use of the relative directory syntax ../ in your web pages. SiteMap XML extracts href links from pages. If it finds href text without the domain ie /mydir/mypage.html or in your case ../mypage.html it adds the domain and this is used as the url in the SiteMap. So if the web page includes ../mypage.html then this is appended to the domain and that is what appears as the url in the site map ie http://www.mydomain.com/../mypage.html , however if the href is /mydir/mypage.html or http://www.mydomain.com/mydir/mypage.html then http://www.mydomain.com/mydir/mypage.html is used. To handle this you can remove the ../ syntax from your web pages or set ../ in the Exclude URL's with and then if mypage.html is not in any pages as a href link without the syntax ../ ie as http://www.mydomain.com/mydir/mypage.html or /mydir/mypage.html either add it to a page so it is picked up or simply add it to the Start URLs. Hope this makes sense.
Question and Answer Item 423 - Browse All Question and Answer Items