Skip to content

fix: google search indexing for 404 urls#7827

Open
Oluwatunmise-olat wants to merge 4 commits into
layer5io:masterfrom
Oluwatunmise-olat:404-redirects-fixes
Open

fix: google search indexing for 404 urls#7827
Oluwatunmise-olat wants to merge 4 commits into
layer5io:masterfrom
Oluwatunmise-olat:404-redirects-fixes

Conversation

@Oluwatunmise-olat

Copy link
Copy Markdown
Contributor

Description

Addresses broken URLs surfaced in the audit.

This PR fixes #7826

Notes for Reviewers
Fixes 404s from the audit, source-level link corrections where an internal link was the cause, redirects for renamed URLs coming from external sources and Google's index, and a Netlify catch-all for .html-suffixed requests

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Oluwatunmise-olat <oluwatunmiseolatunbosun2001@gmail.com>
@github-actions github-actions Bot added the area/blog New posts or new blog functionality label Jun 25, 2026
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview deployment: https://layer5.io/pr-preview/pr-7827/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

Signed-off-by: Oluwatunmise-olat <oluwatunmiseolatunbosun2001@gmail.com>
Comment thread static/_redirects Outdated
@@ -0,0 +1 @@
/*.html /:splat 301

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Oluwatunmise-olat what is the use of this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saurabhraghuvanshii Search Console flagged a bunch of 404s for pages with .html at the end, like /blog/post.html. It looks like these are coming from old cached links and external sites that still think we're using that format. It is a wildcard redirect that strips the .html suffix and sends a permanent redirect to the clean path

@Bhumikagarggg

Copy link
Copy Markdown
Contributor

@Oluwatunmise-olat Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

@alexquincy alexquincy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not review each and every redirect, but of those that I did, some were good and others were atrocious and detrimental.

Comment thread src/utils/redirects.yaml Outdated
toPath: "/learn/workshops"
redirectInBrowser: true
isPermanent: true
- fromPath: "/carrer"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Why would we want to support a misspelling? If it is a misspelling on a property that we own, let's fix it at the source, otherwise, there's no sense in fixing all of the world's misspellings that are pointed to us from whatever site they run or blog post they make. We can't control that and shouldn't try.

We need an enhanced error page that facilitates the reporting of issues. That would be an improvement to help handle all of the possible unknown 404s pointed our way. Will you open an issue to track this enhancement, @Oluwatunmise-olat?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would open an issue for this. That is a valid point

Comment thread src/utils/redirects.yaml
toPath: "/community/handbook/design-with-layer5"
redirectInBrowser: true
isPermanent: true
- fromPath: "/community/handbook/community"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoa! Whoa, whoa. Read this again, @Oluwatunmise-olat. This would be disastrous.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2026-06-28 at 23 54 41

This was my reason for updating that specific redirect

Screenshot 2026-06-28 at 23 55 12

Comment thread src/utils/redirects.yaml Outdated
redirectInBrowser: true
isPermanent: true
- fromPath: "/blog/engineering"
toPath: "/blog"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What? I think you mean: /blog/category/engineering

Comment thread src/utils/redirects.yaml Outdated
redirectInBrowser: true
isPermanent: true
- fromPath: "/community/newcomer"
toPath: "/newcomers"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this should be /community/newcomers.

Where is the source of this hyperlink? Someone or some site didn't include the "s".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was coming from static/mail/2026/lfx-2026.html

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing the source right now

@leecalcote

Copy link
Copy Markdown
Member

@Oluwatunmise-olat Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

@Bhumikagarggg, @Oluwatunmise-olat is well acquainted with our calendar. Instead of offering this canned response, use that time to both learn something and to offer feedback: review the PR.

@leecalcote

Copy link
Copy Markdown
Member

I did not review each and every redirect, but of those that I did, some were good and others were atrocious and detrimental.

@rishiraj38 @saurabhraghuvanshii, both of you gents gave a ✅ to this PR. Please improve the thoroughness of you reviews. Were this PR to be merged, no one would be able to visit the community handbook. Be thoughtful in your reviews, so that your reviews continue to carry weight.

Signed-off-by: Oluwatunmise-olat <oluwatunmiseolatunbosun2001@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/blog New posts or new blog functionality area/careers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: resolve 404 errors from audit

6 participants