How can I redirect all my 404 errors on Ghostpro to homepage?
Hi there! 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
You can add this to your error.hbs
file to have it auto redirect using javascript:
<script>
window.location.replace("/");
</script>
I want it to redirect using 301 redirect.
Or
Can you give me a redirect code…
From Redirecting...
To
You can check the redirects documentation here:
https://docs.ghost.org/docs/redirects
From there, I think the case that you need is:
{
"from": "^\\/([A-Za-z0-9\\-]+)/@blog.url/rss/",
"to": "/$1/"
},
You can replace /@blog.url/rss/ with /feed/ in your case.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.