Rewrite without trailing slash

Hello,

I have a question regarding how the rewrite rules work with and without trailing slash, I have the following rule in my _redirects file:

https://mydomain.com/blog/* https://blog.mydomain.com/blog/:splat 200!

So when going to: https://mydomain.com/blog/article/ (with a slash) it is working fine. It goes to https://mydomain.com/blog/article/

But going to https://mydomain.com/blog/article (without slash) it redirects to https://blog.mydomain.com/blog/article, in stead of making a rewrite, it is doing a redirect.

How can I do that even if is with or without a trailing slash it goes always to https://mydomain.com/blog/article and not to https://blog.mydomain.com/blog/article

hi there, we have a ton of posts on issues with trailing / non trailing slashes that you might take a look at:

https://community.netlify.com/search?expanded=true&q=trailing%20slash

this one, specifically comes to mind and has a ton of background/discussion: