Permanently redirect an entire domain to a new domain. Easy to configure and deploy in just 5 minutes.
Click this button to install to Heroku.
git clone
cd r301
heroku create
git push heroku master
heroku config:set DOMAIN=http://newdomain.com
heroku restart
Finally, make sure you setup your heroku custom domain settings for the old domain.
Visit http://olddomain.com/somewhere and watch it get 301 redirected to http://newdomain.com/somewhere.
cp .env.example .env
Edit the contents of .env to the DOMAIN you want to redirect to.
bundle
bundle exec foreman start
Visit http://localhost:5000/somewhere and watch it get 301 redirected to http://DOMAIN.com/somewhere.