<?xml version="1.0" encoding="UTF-8"?>
<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">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
<url>
<loc>http://opendoowap-totalprog.rhcloud.com/</loc>
</url>
<url>
<loc>http://opendoowap-totalprog.rhcloud.com/page/training</loc>
</url>
<url>
<loc>http://opendoowap-totalprog.rhcloud.com/page/about</loc>
</url>
<url>
<loc>http://opendoowap-totalprog.rhcloud.com/page/under</loc>
</url>
<url>
<loc>http://opendoowap-totalprog.rhcloud.com/page/website</loc>
</url>
</urlset>
Then, I download the file sitemap.xml and I paste it in the web-app directory of my Grails application.After that, I modified my BuildConfig.groovy like the following :
grails.war.copyToWebApp = { args ->To finish, I run grails war command and deploy it in Tomcat web container.
fileset(dir:"web-app") {
include(name: "js/**")
include(name: "css/**")
include(name: "fonts/**")
include(name: "images/**")
include(name: "WEB-INF/**")
include(name: "sitemap.xml")
}
}
That's all. Now, your sitemap is available in http://your.app.com/sitemap.xml and you can add for example to google webmaster tools.
No comments:
Post a Comment