fix: redirects and rewrites
This commit is contained in:
parent
991d1e1a24
commit
55959cc4e1
3 changed files with 27 additions and 91 deletions
92
netlify.toml
92
netlify.toml
|
@ -58,94 +58,4 @@ for = "/follow.xml"
|
|||
[[headers]]
|
||||
for = "/.well-known/webfinger"
|
||||
[headers.values]
|
||||
Content-Type = "application/jrd+json; charset=utf-8"
|
||||
|
||||
###
|
||||
# SITE REDIRECTS
|
||||
###
|
||||
[[redirects]]
|
||||
from = "/rss.xml"
|
||||
to = "/feed.xml"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/fixing-safari-icloud-syncing"
|
||||
to = "/posts/2022/fixing-safari-icloud-syncing/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/migrating-to-fastmail"
|
||||
to = "/posts/2022/migrating-to-fastmail/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/client-side-webmentions-in-nextjs"
|
||||
to = "/posts/2023/client-side-webmentions-in-nextjs/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/apple-centric-digital-privacy-tools"
|
||||
to = "/posts/2022/apple-centric-digital-privacy-tools/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/automating-rss-syndication-with-nextjs-github"
|
||||
to = "/posts/2023/automating-rss-syndication-with-nextjs-github/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/apple-music-a-tale-of-woe"
|
||||
to = "/posts/2021/apple-music-a-tale-of-woe/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/adding-client-side-rendered-webmentions-to-my-blog"
|
||||
to = "/posts/2023/client-side-webmentions-in-nextjs/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/automating-email-cleanup-in-gmail"
|
||||
to = "/posts/2022/automating-email-cleanup-in-gmail/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/fastmail-handling-inbound-email-with-regex-filters-now-with-chatgpt"
|
||||
to = "/posts/2023/fastmail-handling-inbound-email-with-regex-filters-now-with-chatgpt/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/blog/simple-api-fetch-hooks-with-swr"
|
||||
to = "/posts/2022/simple-api-fetch-hooks-with-swr/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/2023/02/automatingandprobablyoverengineeringmy-nowpage"
|
||||
to = "/posts/2023/automating-and-overengineering-my-now-page/"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/2023/01/workflows-handling-inbound-email-on-fastmail-with-regular-expressions"
|
||||
to = "/posts/2023/fastmail-handling-inbound-email-with-regex-filters-now-with-chatgpt/"
|
||||
status = 301
|
||||
|
||||
###
|
||||
# SITE REWRITES
|
||||
###
|
||||
|
||||
[[redirects]]
|
||||
from = "/feeds/all.xml"
|
||||
to = "/feed.xml"
|
||||
status = 200
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/favicon.ico"
|
||||
to = "/assets/img/favicon/favicon.ico"
|
||||
status = 200
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/static/favicons/apple-touch-icon.png"
|
||||
to = "/assets/img/favicon/apple-touch-icon.png"
|
||||
status = 200
|
||||
force = true
|
||||
Content-Type = "application/jrd+json; charset=utf-8"
|
Reference in a new issue