Add robots.txt and sitemap.xml for search engines

This commit is contained in:
Graham McIntire 2026-04-03 08:44:33 -05:00
parent 78bc577824
commit 83ab40fdad
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
3 changed files with 37 additions and 6 deletions

View file

@ -17,7 +17,7 @@ defmodule MicrowavepropWeb do
those modules here.
"""
def static_paths, do: ~w(assets fonts images downloads favicon.ico robots.txt)
def static_paths, do: ~w(assets fonts images downloads favicon.ico robots.txt sitemap.xml)
def router do
quote do

View file

@ -1,5 +1,8 @@
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
# User-agent: *
# Disallow: /
User-agent: *
Allow: /
Disallow: /backfill
Disallow: /dev/
Disallow: /dashboard
Disallow: /health
Sitemap: https://prop.w5isp.com/sitemap.xml

28
priv/static/sitemap.xml Normal file
View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://prop.w5isp.com/</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://prop.w5isp.com/map</loc>
<changefreq>hourly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://prop.w5isp.com/submit</loc>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://prop.w5isp.com/contacts</loc>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>https://prop.w5isp.com/algo</loc>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
</urlset>