tonmo
Well-known member
With @AndyB's great add-on for Broken Links, I've noticed a TON of bad incoming links in the following format:
example.com/posts/12345/likes
Those pages all result in an "Oops! We ran into problems / the requested page can't be found"
After much review, I see that if I remove the "/likes" portion, I'll find the "12345" post, and invariably it is a post that has been liked by a user.
The above is hyperlink, and the format it NOW goes to is:
example.com/posts/12345/reactions
This goes to a pop-up that displays a list of "Members who reacted to message #1"
So, what I've found is, I have a bunch of crawlers or whatever that are used to finding /likes, which I presume was the pre-2.0 format, and the actual destination is /reactions.
Is there a route filter that I could put in that will make sure /likes goes to /reactions? Since the "12345" value is arbitrary/dynamic, I'm not sure how to go about doing that. Perhaps even better, since I don't need crawlers going there, I suppose I could put something in robots.txt, but again, I'm not sure the syntax. Any guidance?
example.com/posts/12345/likes
Those pages all result in an "Oops! We ran into problems / the requested page can't be found"
After much review, I see that if I remove the "/likes" portion, I'll find the "12345" post, and invariably it is a post that has been liked by a user.
The above is hyperlink, and the format it NOW goes to is:
example.com/posts/12345/reactions
This goes to a pop-up that displays a list of "Members who reacted to message #1"
So, what I've found is, I have a bunch of crawlers or whatever that are used to finding /likes, which I presume was the pre-2.0 format, and the actual destination is /reactions.
Is there a route filter that I could put in that will make sure /likes goes to /reactions? Since the "12345" value is arbitrary/dynamic, I'm not sure how to go about doing that. Perhaps even better, since I don't need crawlers going there, I suppose I could put something in robots.txt, but again, I'm not sure the syntax. Any guidance?