Can you give an example of a redirection from a tag to the post it belongs to?
Thread Starter
lucio7
(@lucio7)
Hi John,
For sure.
Here is a search result with the tag result alongside the main post:

When people click on that, they end up here:

For people who use tag, which are all the more SEO savvy and bigger guys, they will get a lot of visits from the tag pages.
And they will get a lot of bounces and 0 seconds visits because ending up on the tag page is confusing for most people.
It would be a big help if there was a way to redirect all tags to the main post.
There’s no ‘main page’ for a tag. A tag page can contain multiple pages, and that is its purpose.
However, you can create a redirect from any URL to any other URL so if you wanted the behaviour above you can do that.
Thread Starter
lucio7
(@lucio7)
You’re right John.
I am wondering if there is a way to automate that process for all posts instead of making a rule for every single tag and post.
For example, to make a general rule such as:
If page title is X, then page title + PDF, page title + summary, page title + whatever you have it, all redirect to page title
I have done something similar with your wonderful plugin when I scrapped AMP pages, so maybe there is a similar solution.
That sounds like a highly customised and specific setup, so it’s not something the plugin will be able to do for you. However you may be able to code it using the WordPress hooks described on this page: https://github.com/johngodley/redirection
Thread Starter
lucio7
(@lucio7)
Thank you John, I’ll have my developer look into it and then I will report here.
As a quick opinion, do you think it’s much more complex than this rule for AMP:

Based on your previous messages it sounded like you wanted to automate things. I don’t know how you’ve got your site setup and I don’t really know what you are trying to do with it so I couldn’t say. If a regular expression is sufficient then great.