Sitemaps
Pubvana automatically generates an XML sitemap and a Google News sitemap to help search engines discover and index your content.
TL;DR
Enable sitemaps at Admin → Settings → SEO. The standard sitemap is available at /sitemap.xml. A Google News sitemap covering the last 48 hours is at /news-sitemap.xml. A dynamic robots.txt is served at /robots.txt and automatically includes a Sitemap: directive pointing to your sitemap URL.
Details
Standard Sitemap (/sitemap.xml)
The standard sitemap follows the Sitemaps Protocol and includes:
- Home page — with
<changefreq>daily</changefreq>and a high priority. - All published pages — with
<lastmod>set to the page'supdated_attimestamp. - All published posts — with
<lastmod>set to the post'supdated_attimestamp.
The response is served with Content-Type: text/xml; charset=UTF-8. If sitemaps are disabled in settings, the route returns a 404.
Google News Sitemap (/news-sitemap.xml)
The News Sitemap follows the Google News Sitemap specification and includes only posts published within the last 48 hours. Each entry contains:
<news:publication>with the site name and language<news:publication_date>in W3C date/time format<news:title>— the post title
If no posts were published in the last 48 hours the sitemap returns a valid but empty XML document. If the news sitemap is disabled in settings the route returns a 404.
Dynamic robots.txt (/robots.txt)
Pubvana generates robots.txt dynamically rather than serving a static file. The generated file:
- Includes standard
User-agent: *andDisallow:directives. - Always includes a
Sitemap:directive pointing to the full canonical sitemap URL (e.g.Sitemap: https://yourdomain.com/sitemap.xml). - Can be extended by editing the Robots.txt settings in Admin → Settings → SEO.
Submitting to Search Engines
After enabling sitemaps, submit your sitemap URL directly to:
- Google Search Console — go to your property, click Sitemaps in the left menu, and paste
/sitemap.xml. - Bing Webmaster Tools — go to Sitemaps and submit the same URL.
Resubmit after major content updates or structural changes.