Skip over navigation

Sitemaps

What are Sitemaps?

Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search engines can more intelligently crawl the site.

Web crawlers usually discover pages from links within the site and from other sites. Sitemaps supplement this data to allow crawlers that support Sitemaps to pick up all URLs in the Sitemap and learn about those URLs using the associated metadata. Using the Sitemap protocol does not guarantee that web pages are included in search engines, but provides hints for web crawlers to do a better job of crawling your site. [1]

In order to create a dynamic Sitemaps file for your Roxen site, follow these steps:

  1. Navigate to your site and enter edit mode
  2. Enter the Content Editor by clicking on the CE button after you login
  3. Navigate to the root folder for your site
  4. Create a new file by clicking File button and choosing Create New File...
  5. Name the file sitemap.xml and click Next
  6. Verify the file "Type" is XML and then click OK
  7. Edit the contents of the page by clicking Edit and choosing Edit Contents...
  8. Copy and paste the RXML code below and click the Save & Close button
  9. Commit the file by clicking Version and then Commit
  10. Enter a log message and click OK

Once you commit the file, the location for the sitemap file will be :

http://www.princeton.edu/DEPTNAME/sitemap.xml

For more information, please visit http://sitemaps.org/faq.php


<?xml version="1.0" encoding="UTF-8"?>
<eval>
<nocache>
<charset out="utf-8" />

  <set variable="var.start_path">&page.dir;</set>

  <define tag="recursive-dir">
    <emit source="dir" path="&_.path;" dirs="">
      <url>
        <loc><replace from="//" to="/">&roxen.server;&_.path;</replace></loc>
        <lastmod>&_.modification-date;</lastmod>
      </url>
    
      <recursive-dir path="&_.url;" />
    </emit>
  </define>

  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
    <url>
      <loc><replace from="//" to="/">&roxen.server;&var.start_path;</replace></loc>
    </url>
 
    <recursive-dir path="&var.start_path;" />
  </urlset>
</nocache>
</eval>

For assistance, please contact roxen@princeton.edu.