Skip to content

Add host-level canonical redirects to Netlify domain#14

Open
harbourviewcompany-create wants to merge 1 commit into
mainfrom
codex/add-host-based-redirects-for-canonical-domain
Open

Add host-level canonical redirects to Netlify domain#14
harbourviewcompany-create wants to merge 1 commit into
mainfrom
codex/add-host-based-redirects-for-canonical-domain

Conversation

@harbourviewcompany-create
Copy link
Copy Markdown
Owner

@harbourviewcompany-create harbourviewcompany-create commented May 20, 2026

Motivation

  • Ensure all requests resolve to a single canonical host to avoid duplicate content and maintain SEO consistency.
  • Align in-page canonical tags and redirects so both users and crawlers are directed to https://vail-renovations.netlify.app.

Description

  • Added permanent host-based redirects in _redirects that map https://vailrenovations.com/* and https://www.vailrenovations.com/* to https://vail-renovations.netlify.app/:splat using 301! to preserve path/query.
  • Preserved the existing route rewrites (the /start-a-project, /fix-list-builder, /maintenance-plans, /inspection-report-repairs, and /thank-you rules) below the host rules.
  • Updated the <link rel="canonical"> host values in handyman-services.html and renovations.html to use https://vail-renovations.netlify.app.
  • Left sitemap.xml unchanged because it already referenced the canonical Netlify host.

Testing

  • Ran rg -n "rel=\"canonical\"" *.html to verify canonical tags now point to https://vail-renovations.netlify.app, which succeeded.
  • Inspected _redirects with cat _redirects to confirm the new 301! host rules were added, which succeeded.
  • Checked sitemap.xml with cat sitemap.xml and confirmed URLs already use the canonical host, which succeeded.
  • Verified the working tree includes the expected file updates for _redirects, handyman-services.html, and renovations.html, which succeeded.

Codex Task


Open in Devin Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

Warning

Rate limit exceeded

@harbourviewcompany-create has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 58 minutes and 57 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ad510d7d-fc85-4aee-b70c-76d3eec5b406

📥 Commits

Reviewing files that changed from the base of the PR and between 6e00de5 and e82a246.

📒 Files selected for processing (3)
  • _redirects
  • handyman-services.html
  • renovations.html

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for wurx-can ready!

Name Link
🔨 Latest commit e82a246
🔍 Latest deploy log https://app.netlify.com/projects/wurx-can/deploys/6a0de689de32290008b7af07
😎 Deploy Preview https://deploy-preview-14--wurx-can.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for wurx-otta ready!

Name Link
🔨 Latest commit e82a246
🔍 Latest deploy log https://app.netlify.com/projects/wurx-otta/deploys/6a0de6894b3c8a00084a8fbf
😎 Deploy Preview https://deploy-preview-14--wurx-otta.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

Comment thread _redirects
Comment on lines +1 to +2
https://vailrenovations.com/* https://vail-renovations.netlify.app/:splat 301!
https://www.vailrenovations.com/* https://vail-renovations.netlify.app/:splat 301!
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚩 Redirect direction sends traffic from custom domain to netlify.app subdomain

The added redirects send vailrenovations.com traffic to vail-renovations.netlify.app, which is the reverse of the typical Netlify pattern (where the netlify.app subdomain redirects to the custom domain). This is consistent with the rest of the site — all canonical URLs, sitemap.xml, and robots.txt already reference the netlify.app subdomain — so it appears intentional. However, if the plan is to eventually use vailrenovations.com as the primary domain, these redirects and all canonical URLs/sitemap entries would need to be reversed.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant