� Requesting a Redirect
↪️ Requesting a Redirect
From time to time, the business will want to be able to use our website to generate a readable URL for customers to support sales or commerce initatives. To do this, we use HTTP Redirects.
To request a HTTP redirect, please do the following:
- Make a copy of the below Google Sheet with the Source and Destination and permanency already filled in
- Share this with the team by emailing devops@rapha.cc or in the
#infrastructurechannel on Slack. - Communicate the dates of when you need this live
- If you're need an update or need to escalate go-live get in touch via
#infrastructureon Slack
Google Sheet Template
You can find a Google Sheet template here: https://docs.google.com/spreadsheets/d/18fYnl_LpMKKBHtgIcCmGVUbooF2V6Znh9x7dLUoekRI/edit#gid=0
Redirect Example
| Source URL | Destination URL | Temporary (307) / Permanent (308) | Go Live Date (DD/MM/YY) |
|---|---|---|---|
| https://rapha.cc/gb/en/new-arrivals | https://rapha.cc/gb/en/coming-soon | 308 | 26/01/2023 |
✔️ Testing
Diffculty in testing redirects
Frustratingly, we are mainly at the mercy of the user's own device. Therefore, you may find that it does not work for you as a user. Test it on another device or read on.
Testing locally
To test locally with the caching in mind you have three options:
- Test with Incognito or Private mode in your browser - this circumvents the local cache
- Test from another device such as a mobile phone
- Using a command line interface (terminal)
Testing from a Command Line Interface (CLI):
$ curl -v -L -H -k 'Cache-Control: no-cache, no-store' https://rapha.cc/gb/en/shipping 2>&1 | grep -i "^< location:"
< location: https://www.rapha.cc/gb/en/shipping
< location: https://support.rapha.cc/en/articles/6-uk-shipping-options
💡 Note the 'location' shows where the journey ends