Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How do I fix hyperlinks on a webpage *before* they 404? (site search related?)?
My site has a sister site that I do not run. But I link to the sister site. Sister site is taking down a series of pages. I want to remove my site's hyperlinks to those pages before the change, so I'm not linking to something that eventually 404s. For example, I have a hyperlink that is sistersite.blah.com/various-string-going-to-different-places.
I tried a site search for link:sistersite.blah.com and link:sistersite.blah.com/ but that didn't pull up a complete list of results.
Does anyone know how I can quickly find pages on my site with these complex(?) hyperlinks that are scheduled to go bust in a couple of weeks?
1 Answer
- icefyreLv 58 years agoFavorite Answer
You can use "grep" to scan through all of the files on your site and return the relevant links. You can also set up a script using awk, Perl or Python to make the replacements site-wide for you so you don't have to manually change each link.
You basically need any tool that will allow you to search and potentially modify text files using regular expressions. Regular expressions are the key.
Hope this helps!