Lab 2

Redirect behavior and hostname consolidation

Lab 2 focused on redirecting traffic from the application hostname to the canonical website hostname and app path.

Demonstrable content

Validate redirect behavior with:

curl -IL https://app.ybarra-cflab.com\
        

The expected behavior is a redirect from the app hostname to the canonical app path on the main website hostname.

What was completed

  • Validated application hostname behavior.
  • Implemented redirect behavior to the canonical hostname and path.
  • Confirmed redirect responses using curl.
  • Reduced ambiguity between multiple hostnames.

Technical summary

We used Cloudflare redirect behavior to route requests from the app-specific hostname to the canonical website hostname and application path. This established a predictable URL structure and allowed us to test the full redirect chain using HTTP response headers.

Customer-facing summary

We cleaned up how visitors reach the application by automatically sending them to the correct website address. This improves consistency, avoids confusion, and makes the site easier to support because users land in one expected place.