Hello, I’m trying to get my Ghost installation to redirect all traffic from
/post/yyyy/mm/dd/post-name.aspx
to
/post-name/
i.e. the default way Ghost creates URLs for posts. I’m using the redirects feature under the Labs panel for this. My redirects.json file looks like this
“302 Forbidden” isn’t a status code… 302 is a temporary redirect, 403 is Forbidden. Not sure what you’ve got going on here. It sounds like something not to do with Ghost is getting in the way.
Your regex looks OK, although I think you may need to escape the slashes and the second dot:
(I’ve not tested, but the docs show everything escaped)
If you post your real URL someone can have a look to see if they can suggest what it might be from the headers. Otherwise please post the full headers from curl -I <your real blog post url>.
However, you’re getting a 403 before you hit Ghost here, and I can see you’re a Ghost(Pro) customer.
If you’re having any issue with a Ghost(Pro) site, please drop us an email on support@ghost.org and we’ll be more than happy to give you a hand directly