Skip to content

motdotla/r301

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r301

r301

Permanently redirect an entire domain to a new domain. Easy to configure and deploy in just 5 minutes.

Usage

Production

Click this button to install to Heroku.

Deploy

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.

Development

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.

About

Permanently redirect an entire domain to a new domain. Easy to configure and deploy in just 5 minutes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages