elixirschool / school_house

The new era of Elixir School now powered by @phoenixframework
https://elixirschool.com/
Apache License 2.0
155 stars 49 forks source link

XML sitemaps keep showing beta URLs #143

Closed jaimeiniesta closed 3 years ago

jaimeiniesta commented 3 years ago

https://elixirschool.com/sitemap_dark_mode.xml is including beta URLs:

<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc>https://beta.elixirschool.com/blog?ui=dark</loc>
  </url>
  <url>
    <loc>https://beta.elixirschool.com/privacy?ui=dark</loc>
  </url>

Similar for https://elixirschool.com/sitemap.xml - in this case, it's fine when I browse it (I'm in Spain), but Rocket Validator is also getting beta URLs (the scraper is in US).

Rocket Validator can't scrape the site, because the URLs are not in the same subdomain.

jaimeiniesta commented 3 years ago

Fixed! Thanks! 🚀

doomspork commented 3 years ago

@kinson is the MVP!

kinson commented 3 years ago

@jaimeiniesta good catch 😅 on that one