Looks like this thread has been quiet for a few days since you opened this. Sorry about that!
Are you still having this issue? If so, what have you tried in the past week to debug this? Have you read our troubleshooting redirects guide? Let us know!
I didn’t have .html in my to rule, rather in the from rule. Removed it just to test.
The rule now:
[[redirects]]
from = "/:cat/:year/:month/:day/:slug"
to = "/:year/:slug/"
status = 301
Now the slug is replaced, but it has .html which is the main part I’m trying to remove with this rule.
Now https://candland-net.netlify.app/rails/2020/10/16/rails-json-serialized-fields-validation.html
goes here https://candland-net.netlify.app/2020/rails-json-serialized-fields-validation.html/.
Is there a way to get the rails-json-serialized-fields-validation part of the URL without the .html? Or a way to remove the .html in the to part of the rule?