Skip to content

Generates 301 redirects from old domains to new domains. Minimal, rack-based.

Notifications You must be signed in to change notification settings

joeyAghion/rerouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rerouter

A minimal, rack-based domain-redirecter. Generates 301 redirects from a set of source hostnames to their corresponding destination hostnames while preserving paths and querystrings.

Steps for setting up your own rerouter on Heroku:

git clone https://github.com/joeyAghion/rerouter.git
cd rerouter
gem install heroku
heroku apps:create
git push heroku master
heroku config:set REDIRECTS="{'old.domain.com'=>'new.domain.com'}"
heroku domains:add old.domain.com

Then, update the DNS of old.domain.com to be a CNAME pointing to the new heroku app.

About

Generates 301 redirects from old domains to new domains. Minimal, rack-based.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages