Ok it sorta worked as a redirect, lets try a rewrite again

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-12 15:19:41 -04:00
parent 0715889672
commit becc986b5b
No known key found for this signature in database
GPG key ID: AD914585C9406B6A

View file

@ -2,11 +2,6 @@
"public": true,
"framework": "hugo",
"redirects": [
{
"source": "/news/(.*)/",
"destination": "/news/$1/status.ajson"
},
{
"source": "/amp/(.+)/",
"destination": "/$1/"
@ -25,6 +20,17 @@
}
],
"rewrites": [
{
"source": "/news/(.*)/",
"has": [
{
"type": "header",
"key": "Accept",
"value": "application/activity+json"
}
],
"destination": "/news/$1/status.ajson"
},
{
"source": "/(.+)/$",
"destination": "/$1/index.html"