Phase 8 part 3: lost links
Each known linking page (from Bing, Plausible or added by hand) is opened once a week, at most 100 a day, to check it still links to the site: kept, gone (the page no longer has the link), page gone (404, 410 or moved elsewhere) or pointing at a 404 (our page it links to is gone). SEO → Links lists the lost ones with what happened, when last seen and what the site brought; links can be added by hand (checked at once), checked now, or forgotten. What to write next suggests a redirect for a link to a 404, and asking for a lost link back when it brought visitors. Links and What to write next now work for websites without Search Console too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -168,7 +168,8 @@ type LivePage struct {
|
||||
Status int
|
||||
Final string // the address after redirects
|
||||
Title string
|
||||
Text string // its visible text
|
||||
Text string // its visible text
|
||||
Links []string // its links to other sites, absolute
|
||||
}
|
||||
|
||||
// Page reads one page of a live site.
|
||||
@@ -181,7 +182,7 @@ func (f *Fetcher) Page(ctx context.Context, u string) (*LivePage, error) {
|
||||
if r.status == http.StatusOK {
|
||||
p := PageReport{URL: u}
|
||||
lp.Text = readPageText(&p, r.final, r.body)
|
||||
lp.Title = p.Title
|
||||
lp.Title, lp.Links = p.Title, p.externalLinks
|
||||
}
|
||||
return lp, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user