Site map for Simpla 2+


Site map for Simpla 2+

Unpack them to the root of the site (the archive contains only new files, so we won't break anything).

Archive composition:




view/SitemapView.php
design/default/html/sitemap.tpl
Usually I make edits on the default base template, but you can copy the sitemap.tpl file to your template and add your own styling.

Open the file .htaccess at the root of the site and after the code

Code:
# Google sitemap
RewriteRule ^sitemap.xml?$  sitemap.php  [L,QSA]

adding the code

Code:
# Sitemap
RewriteRule ^sitemap/?$    index.php?module=SitemapView  [L,QSA]

And don't forget to create a new page in the menu with the sitemap address

This is our redirect to the short address http://[your_site]/sitemap

Go back
14-11-2022, 13:10