redirects for sitemaps, favicons, etc.

This commit is contained in:
Brandon Thomas committed 2024-08-15 20:22:24 -04:00
1 parent 671573a802
commit bce9ef517c
2 files changed
+34 -6

No files matched your search

+17 -3
View File
@@ -101,9 +101,7 @@
# Finally, all the website resources (images,
# css, scripts) need to be loaded:
/apple-touch-icon.png /website/apple-touch-icon.png 200
/fakeyou/* /website/fakeyou/:splat 200
/favicon-32x32.png /website/favicon-32x32.png 200
/images/* /website/images/:splat 200
/locales/* /website/locales/:splat 200
/mascot/* /website/mascot/:splat 200
@@ -112,6 +110,22 @@
# Ideally we could place all of the above under 'static':
/static/* /website/static/:splat 200
# Sitemaps:
/sitemap_index.xml /website/sitemap_index.xml 200
/sitemaps/* /website/sitemaps/:splat 200
# Well-known resources:
/manifest.json /website/manifest.json 200
/robots.txt /website/robots.txt 200
# Favicons and Mobile Icons:
/android-chrome-192x192.png /website/android-chrome-192x192.png 200
/android-chrome-512x512.png /website/android-chrome-512x512.png 200
/apple-touch-icon.png /website/apple-touch-icon.png 200
/favicon-16x16.png /website/favicon-16x16.png 200
/favicon-32x32.png /website/favicon-32x32.png 200
/favicon.ico /website/favicon.ico 200
# NB: We can't use a root level glob as that blocks
# downstream netlify.toml redirects.
#/* /website/:splat 200
# /* /website/:splat 200
+17 -3
View File
@@ -84,9 +84,7 @@
# Finally, all the website resources (images,
# css, scripts) need to be loaded:
/apple-touch-icon.png /website/apple-touch-icon.png 200
/fakeyou/* /website/fakeyou/:splat 200
/favicon-32x32.png /website/favicon-32x32.png 200
/images/* /website/images/:splat 200
/locales/* /website/locales/:splat 200
/mascot/* /website/mascot/:splat 200
@@ -95,6 +93,22 @@
# Ideally we could place all of the above under 'static':
/static/* /website/static/:splat 200
# Sitemaps:
/sitemap_index.xml /website/sitemap_index.xml 200
/sitemaps/* /website/sitemaps/:splat 200
# Well-known resources:
/manifest.json /website/manifest.json 200
/robots.txt /website/robots.txt 200
# Favicons and Mobile Icons:
/android-chrome-192x192.png /website/android-chrome-192x192.png 200
/android-chrome-512x512.png /website/android-chrome-512x512.png 200
/apple-touch-icon.png /website/apple-touch-icon.png 200
/favicon-16x16.png /website/favicon-16x16.png 200
/favicon-32x32.png /website/favicon-32x32.png 200
/favicon.ico /website/favicon.ico 200
# NB: We can't use a root level glob as that blocks
# downstream netlify.toml redirects.
#/* /website/:splat 200
# /* /website/:splat 200