Hi! I have a gatsby site. I want to make it so any url with relative path /share/* goes to the page defined at /share. I want the url to be preserved in the user’s address bar.
For the above, the redirect rule is /my-name/* to /my-name with forced 200 status. I have a my-name.html file that’s redirected to, regardless of what’s after /my-name/, and this setup retains the original path in the URL bar.
Since you were able to get your second rule to work, your redirects are obviously being uploaded- so that’s not the issue. The other things I can think of would be:
we process the redirect rules from top to bottom in the redirects file, so we recommend going most specific to least specific. Maybe another rule is being processed before the one you want?
And the other thing to confirm is that you have a page called shareGDO.html to redirect to?