You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// You could do this manually (since this may never change) or if you are ultra-fancy, you could dynamically update your robots.txt with the names of the sitemap index
//--build a list of X.Web.Sitemap.Url objects and determine what is the appropriate ChangeFrequency, TimeStamp (aka "LastMod" or date that the resource last had changes),
10
+
// and the a priority for the page. If you can build in some logic to prioritize your pages then you are more sophisticated than most! :)
//--assign the location of the HTTP request -- e.g.: https://www.somesite.com/some-resource
14
+
Location=url,
15
+
//--let's instruct crawlers to crawl these pages monthly since the content doesn't change that much
16
+
ChangeFrequency=ChangeFrequency.Monthly,
17
+
//--in this case we don't know when the page was last modified so we wouldn't really set this. Only assigning here to demonstrate that the property exists.
18
+
// if your system is smart enough to know when a page was last modified then that is the best case scenario
19
+
TimeStamp=DateTime.UtcNow,
20
+
//--set this to between 0 and 1. This should only be used as a relative ranking of other pages in your site so that search engines know which result to prioritize
21
+
// in SERPS if multiple pages look pertinent from your site. Since product pages are really important to us, we'll make them a .9
0 commit comments