Exposing The Sitemaps
In order for the sitemaps generated by the plug-in to be used,
they must be exposed on your web site. To do this you need to add the
plug-in's sitemap servlet and a corresponding servlet mapping to each of
your publications' web.xml
files. The entries you
need to add are:
<servlet> <servlet-name>SitemapServlet</servlet-name> <servlet-class>com.escenic.seo.servlet.SitemapServlet</servlet-class> </servlet> ... <servlet-mapping> <servlet-name>SitemapServlet</servlet-name> <url-pattern>/sitemap/*</url-pattern> </servlet-mapping>
These entries determine the sitemap index URLs that the plug-in's
webapp will respond to. If your publication URL is
http://www.example.com/
, for example, then the
sitemap index documents will be exposed in the following
locations:
-
Aggregated sitemap:
http://www.example.com/sitemap/archive.xml
-
Update sitemap:
http://www.example.com/sitemap/update.xml
-
Google News sitemap:
http://www.example.com/sitemap/googlenews.xml
-
Google Video sitemap:
http://www.example.com/sitemap/googlevideo.xml