Skip to content

Fix redirecting and broken links reported by Search Console - #97

Merged
ayeshrodz merged 1 commit into
mainfrom
seo/no-redirect-links
Oct 26, 2026
Merged

ayeshrodz merged 1 commit into
mainfrom
seo/no-redirect-links

Conversation

@ayeshrodz

Copy link
Copy Markdown
Owner

Search Console reported pages with redirects, a 404 and a page blocked by robots.txt. A crawl of the live site found the causes:

  • Redirects: content links in the build-time HTML (for example the RHCSA and RHCE objective maps, and links between ch01 pages) had no trailing slash. Each one went through a 301 to the / form, about 128 addresses in total. They now link straight to the served address.
  • 404 and robots.txt: "read it first" links to the lab script (lab/lab) resolved against the page's own path (/rhel9-sysadmin/ch01/workstation/lab/lab, a 404). They now point to /lab/lab in both the build-time HTML and the app, with rel="nofollow" because /lab/ is for the lab command, not for search.

A crawl of the built site checks 1,976 internal links: none redirects or fails. Browser and unit tests pass.

🤖 Generated with Claude Code

…olve from the site root

Content links written into each page's HTML had no trailing slash, so a
crawler followed a redirect for each one. Links to the lab tool files
("lab/lab") resolved against the page's own path and ended in a 404;
they now point to /lab/ and carry rel=nofollow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ayeshrodz
ayeshrodz merged commit 0603a8d into main Oct 26, 2026
1 check passed
@ayeshrodz
ayeshrodz deleted the seo/no-redirect-links branch October 26, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant