Redirect deleted tags


#1

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


#2

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?

Any tips?


#3

You can redirect with Ghost.

Check my options here:


Or Ghost redirects:


#4

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.


#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


#6

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?


#7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.