diff --git a/src/routes/[tag]/[slug]/amp.ts b/src/routes/[tag]/[slug]/amp.ts new file mode 100644 index 0000000..0637269 --- /dev/null +++ b/src/routes/[tag]/[slug]/amp.ts @@ -0,0 +1,11 @@ +import type { RequestHandler } from "@sveltejs/kit"; + +export const GET: RequestHandler = async ({ params }) => { + return { + status: 301, + headers: { + "Location": `/${params.tag}/${params.slug}` + }, + }; +}; +