Jahia in English > Sitemap generation

0 (0 Good)
0 (0 Bad)

Sitemap generation

by  bharatkasodariya »  2016/05/04 11:49

Need information about sitemap generation.

I just checked below link but its only submitting sitemap file to seo engine.

https://www.jahia.com/community/extend/developers-techwiki/sitemap

How does Jahia generate sitemap.xml file internally. where it is placed and what is the use of sitemap checkbox in option tab of editor.

 

  • Sitemap generation
    2016/05/04 11:49

    bharatkasodariya <p>Need information about sitemap generation.</p> <p>I just checked below link but its only submitting sitemap file to seo engine.</p> <p>https://www.jahia.com/community/extend/developers-techwiki/sitemap</p> <p>How does Jahia generate sitemap.xml file internally. where it is placed and what is the use of sitemap checkbox in option tab of editor.</p> <p>&nbsp;</p>

  • Number of messages  57
    Registration date May 4, 2016
    0 (0 Good)
    0 (0 Bad)

    Re: Sitemap generation

    by  shyrkov »  2016/05/10 20:16

    Hello,

    the sitemap module (https://github.com/Jahia/sitemap ) contains all the needed functionality to make it work.

    How it works for sitemap.xml: the module provides a special URL rewriting rule (https://github.com/Jahia/sitemap/blob/master/src/main/resources/META-INF/urlrewrite-sitemap.xml ) which does redirects the URLs, such as: http://www.acmespace.com/sitemap.xml into a URL like http://localhost:8080/sites/ACMESPACE/home.sitemap.xml internally.

    The "sitemap" in this URL (almost at the very end) defines the "view" and "xml" defines the view type.

    The corresponding JSP, that serves the content for that view could be found here:

    XML view: https://github.com/Jahia/sitemap/blob/master/src/main/resources/jmix_sitemap/xml/sitemap.sitemap.jsp

    Text view: https://github.com/Jahia/sitemap/blob/master/src/main/resources/jmix_sitemap/txt/sitemap.sitemap.jsp

     

    So, if you have a DX installed and have imported the built-in ACME Space Demo site, you could call the following URLs:

    http://localhost:8080/sites/ACMESPACE/home.sitemap.xml

    http://localhost:8080/sites/ACMESPACE/home.sitemap.txt

     

    to see the result of the corresponding view rendering.

     

    Kind regards

    Sergiy

  • Re: Sitemap generation
    2016/05/10 20:16

    shyrkov <p>Hello,</p> <p>the sitemap module (https://github.com/Jahia/sitemap ) contains all the needed functionality to make it work.</p> <p>How it works for sitemap.xml: the module provides a special URL rewriting rule (https://github.com/Jahia/sitemap/blob/master/src/main/resources/META-INF/urlrewrite-sitemap.xml ) which does redirects the URLs, such as: http://www.acmespace.com/sitemap.xml into a URL like&nbsp;http://localhost:8080/sites/ACMESPACE/home.sitemap.xml internally.</p> <p>The &quot;sitemap&quot; in this URL (almost at the very end) defines the &quot;view&quot; and &quot;xml&quot; defines the view type.</p> <p>The corresponding JSP, that serves the content for that view could be found here:</p> <p>XML view:&nbsp;https://github.com/Jahia/sitemap/blob/master/src/main/resources/jmix_sitemap/xml/sitemap.sitemap.jsp</p> <p>Text view:&nbsp;https://github.com/Jahia/sitemap/blob/master/src/main/resources/jmix_sitemap/txt/sitemap.sitemap.jsp</p> <p>&nbsp;</p> <p>So, if you have a DX installed and have imported the built-in ACME Space Demo site, you could call the following URLs:</p> <p>http://localhost:8080/sites/ACMESPACE/home.sitemap.xml</p> <p>http://localhost:8080/sites/ACMESPACE/home.sitemap.txt</p> <p>&nbsp;</p> <p>to see the result of the corresponding view rendering.</p> <p>&nbsp;</p> <p>Kind regards</p> <p>Sergiy</p>

  • Number of messages  407
    Registration date May 10, 2016
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Sitemap generation

    by  bharatkasodariya »  2017/06/02 13:40

    cache.expiration=0 in properties is not working with sitemap xml url

    http://localhost:8080/sites/ACMESPACE/home.sitemap.xml

    any option to make it working

    looks like major bug

  • Re: Re: Sitemap generation
    2017/06/03 06:21

    bharatkasodariya <p>cache.expiration=0 in properties is not working with sitemap xml url</p> <p>http://localhost:8080/sites/ACMESPACE/home.sitemap.xml</p> <p>any option to make it working</p> <p>looks like major bug</p>

  • Number of messages  57
    Registration date Jun 2, 2017
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page