Skip to main content

� 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:

  1. Make a copy of the below Google Sheet with the Source and Destination and permanency already filled in
  2. Share this with the team by emailing devops@rapha.cc or in the #infrastructure channel on Slack.
  3. Communicate the dates of when you need this live
  4. If you're need an update or need to escalate go-live get in touch via #infrastructure on 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 URLDestination URLTemporary (307) / Permanent (308)Go Live Date (DD/MM/YY)
https://rapha.cc/gb/en/new-arrivalshttps://rapha.cc/gb/en/coming-soon30826/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:

  1. Test with Incognito or Private mode in your browser - this circumvents the local cache
  2. Test from another device such as a mobile phone
  3. 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