Hello community!
My redirects are not working. My netlify site is https://musing-ritchie-b32f22.netlify.app/
I’m migrating my wordpress site to netlify and using 11ty to generate the static content.
My wordpress site uses index.php/yyyy/mm/dd/slug
and there are some sites out there that link to these URLs. I’d obviously like to keep these incoming links working, so I’ve been looking at _redirects
.
As an example, sites are linking to https://blog.dunnhq.com/index.php/2018/01/11/are-your-uwp-win2d-offscreen-bitmaps-dull/
.
I want them redirected to https://blog.dunnhq.com/posts/2018/01/11/are-your-uwp-win2d-offscreen-bitmaps-dull/
note - I haven’t yet done the custom domain step, so replace blog.dunnhq.com
with the standard netlify domain
So, basically, I want to redirect /index.php/*
to /posts/:slug
, but I can’t seem to get it working.
Here’s my _redirects
file:
/index.php/* /posts/:splat
I’ve ensured that this file is published by adding this to _eleventy.js
:
eleventyConfig.addPassthroughCopy("_redirects");
But nothing seems to work.
Any help would be much appreciated!