ā App is Loaded
This page loaded successfully. Navigate between pages using the top nav ā each click changes the URL using the History API (like a real React SPA). Try refreshing on any sub-page to test Amplify's SPA rewrite rule.
Environment Info
| Property | Value |
|---|---|
| window.location.href | ā |
| window.location.hostname | ā |
| window.location.pathname | ā |
| User Agent | ā |
| Referrer | ā |
| Page Load Time | ā |
Routing Tests SPA
These test that Amplify's 200 rewrite rule is working.
Click a route, then refresh the page. If you get a 404/403, the rewrite rule is missing.
Navigate to Deep Routes
Refresh Test Instructions
- Click any route above ā URL changes to that path
- Press F5 / Ctrl+R to hard refresh
- PASS ā Same page loads again = rewrite rule working
- FAIL ā 403/404 = rewrite rule missing in Amplify
Fix: Run aws amplify update-app --app-id dpwf8f3jtwryw --region us-east-2 --custom-rules '[{"source":"</^[^.]+$|\\.[^.]+$>/","target":"/index.html","status":"200"}]'
Headers & CDN Detection
Fetches this page's own URL and inspects response headers to detect Akamai / CloudFront.
What to Look For
| Header | Means |
|---|---|
| x-cache: Hit from cloudfront | Akamai ā CloudFront hit |
| x-check-cacheable: YES | Akamai caching is ON |
| server: AkamaiGHost | Akamai edge served it |
| x-amz-cf-id | CloudFront origin ID |
| x-cache: Error from cloudfront | Origin error (WAF/routing issue) |
About Deep Link Test
You reached /about. Try bookmarking this URL and opening it in a new tab ā it should load this page directly.
Current URL
If you can reach this page by pasting the URL directly into the browser address bar, Amplify's SPA rewrite rule is working correctly.
Share These Deep Links
Copy and open these in a fresh browser tab / incognito to validate:
Settings / Profile Nested Route
This is /settings/profile
This page simulates a nested route like /settings/profile.
Refresh to confirm the SPA rewrite rule handles paths with multiple segments.
Dynamic Route Active
You navigated to a dynamic route. The app loaded correctly from index.html
and the JS router matched this path. This confirms the SPA rewrite rule is active.