Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent search engines from indexing deploy preview URLs and force redirect already indexed URLs to the homepage. #2709

Closed

Conversation

paularah
Copy link
Contributor

See Slack conversation reference from Scott Lowe

This patch prevents the deploy previews from being indexed in search engines and force-redirects existing indexed deploy preview pages to the main Tetragon site.

  1. updates the netlify config to include redirect rule

  2. create a robots.txt file the prevents indexing deploy preview pages

Description

Prevent search engines from indexing deploy preview URLs and force redirect already indexed URLs to the homepage.

@paularah paularah requested review from mtardy and a team as code owners July 22, 2024 13:25
Copy link

netlify bot commented Jul 22, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 262d7d7
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/669e5dbbb1b33900089f1280
😎 Deploy Preview https://deploy-preview-2709--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

This patch prevents the deploy previews from being indexed in search engines and force redirects existing indexed deploy previews pages to the main tetragon site.

1. updates the netlify config to include redirect rule

2. create a robots.txt file the prevents indexing deploy preview pages

Signed-off-by: Paul Arah <[email protected]>

docs: Prevent search engines from indexing deploy preview URLs and force redirect already indexed URLs to the homepage

This patch prevents the deploy previews from being indexed in search …
…engines and force redirects existing indexed deploy previews pages to the main tetragon site.

1. updates the netlify config to include redirect rule

2. create a robots.txt file the prevents indexing deploy preview pages

Signed-off-by: Paul Arah <[email protected]>
@paularah paularah force-pushed the pr/paularah/stop-indexing-preview-sites branch from 262d7d7 to a736900 Compare July 22, 2024 13:34
@mtardy
Copy link
Member

mtardy commented Jul 22, 2024

See Slack conversation reference from Scott Lowe

How can I see that?

Copy link
Member

@mtardy mtardy left a comment

Choose a reason for hiding this comment

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

I don't think your patch works? Have you tried looking at the preview and its robots.txt?

@mtardy
Copy link
Member

mtardy commented Jul 22, 2024

This should do what you want #2711.

@mtardy
Copy link
Member

mtardy commented Jul 23, 2024

Should be fixed by #2711

@mtardy mtardy closed this Jul 23, 2024
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.

2 participants