Plugin

Archived
Forum
(read-only)

Rein de Vries does not actively monitor this forum
(but you can still get help from other EE users).


For official support, visit the official support site »

Google Sitemap Lite

ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Rein de Vries

     

You must be logged in to post.

Where is it outputting the sitemap.xml?

General (Resolved)

Richard Adamson
Richard Adamson

In Template Manager in the *site Template Group I created an XML Template with the following string

{exp:google_sitemap_lite:generate type="structure" mode="pages"

Where is the sitemap.xml file getting outputted, I can’t see it anywhere?

Reinos
# 1
Developer
Reinos

If your template group is called ‘site’ and your sitemap template ‘sitemap’. You can see the sitemap on the following url : example.com/site/sitemap

michael.hebert
# 2
michael.hebert

How would you make it output under a example.com/sitemap.xml URL?

Reinos
# 3
Developer
Reinos

Thats up to you. you can create your template self and place the sitemap tag on that page.

michael.hebert
# 4
michael.hebert

Yeah but I was hoping to get the url as example.com/sitemap.xml. It doesn’t look like anyone’s been able to get a rewrite working for this, only a redirect :(

RewriteRule ^sitemap.xml$ /google-sitemap [R=301,L] 
michael.hebert
# 5
michael.hebert

Well, for anyone interested, the solution is so simple you wouldn’t even think about it: actually put sitemap.xml as your structure URL.