Handles traffic for sites that have transitioned to GOV.UK
This is a Rack-based redirector. It serves 301s and 410s from mappings created by Transition.
You can use the GOV.UK Docker environment to run the application and its tests with all the necessary dependencies. Follow the usage instructions to get started.
Use GOV.UK Docker to run any commands that follow.
bundle exec rake
In order to test the redirect feature of this app, you can use a special bouncer-redirect.dev.gov.uk domain. We will create a mapping from this fake domain to GOV.UK.
Setup the Transition repo.
Run the following command in the Transition repo.
bundle exec rake import:all:orgs_sites_hosts
One of the created organisations will be “cabinet-office”, which we will use in the next step.
global: =301 https://www.gov.uk
bundle exec rake 'import:org_sites_hosts[<path-to-file>]'
This will create the site in the shared Transition / Bouncer DB.
You should see that it redirects to GOV.UK, as specified in the site file.