Enable Static Sitemap in Liferay

I need to put a static sitemap.xml file, because Liferay does not generate all the necessary links, and some of them should not be there. I think this has changed a lot with my ext-plugin .

The question is, is it possible to configure static sitemap.xml (used by Google robots) in the root of the portal without changing Liferay itself?

Use: Liferay 6.0.6

Thanks in advance:)

+6
source share
2 answers

The best solution was to create a SitemapServlet class in Liferay (as Johnny suggested) that responds with a sitemap. No changes to Tomcat are required.

+1
source

The solution is to add your static sitemap to the Liferay document library, and then tell Google the map url using Google Webmaster Tools .

The second solution is to add the sitemap to your ROOT directory (if you are using Tomcat), however this may require some changes to Tomcat settings and Liferay code.

Another solution is to create a portlet that generates all the links you want into a Sitemap XML file, and then save this file in your chosen location. This is the approach I took when I needed to post the full URLs of articles that don't actually exist as pages.

+5
source

All Articles