Good evening,
I have eliminated many “tags” that were indexed on google. Now obviously google redirect me to page 404 of ghost.
To avoid problems with google/indexing and/or to optimize Nginx is it recommended to create a rewrite url in Nginx or i do not have to do anything?
I had thought of something like this:
location / {
try_files $ uri $ uri / /index.php?q=$uri&$args;
}
I thought of making a redirect of the pages not found on the homepage
Maybe my request could be useful to someone else too.
Thank you
You can redirect with Ghost.
Check my options here:
Replying to myself with the actual working redirects maybe it helps other people as well:
If you migrated your blog from WordPress to Ghost and wanted to fix the URL’s (assuming your WP permalinks were domain.com/category/ ), then you need to do the following:
{
"permanent": true,
"from": "^/others/([A-Za-z0-9\\-]+)",
"to": "/$1/"
},
This will redirect from domain.com/others/post-name/ to domain.com/post-name/ (the postname being a regex variable made out of letters & numbers th…
Or Ghost redirects:
https://docs.ghost.org/v1/docs/redirects
Thanks for the reply.
I created a redirect for each tag I had deleted, like this:
{
"permanent": true,
"from": "^ \\ / tag / deleted_tag (\\ /?) $",
"to": "/"
},
Very simple and works properly.
But, as suggested by the documentation, it is better for redirect using nginx or apache. Only as an alternative use the ghost redirect.
I would like to find a solution using Nginx
Thanks for your help.
Kevin
May 2, 2018, 9:00am
5
301 redirects for removed pages to the homepage isn’t great for SEO, you’d be better off redirecting the old category URL to the new tag URL or if the category is really gone then creating a custom 404 template
I’m using the official theme of ghost (casper) so I have a 404 page.
For SEO, should I remove the redirects to the homepage and leave them on page 404?
system
Closed
May 16, 2018, 10:41am
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.