Skip to content

The least amount of code I could use to redirect traffic to another site

License

Notifications You must be signed in to change notification settings

larryprice/simple-heroku-redirect-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-heroku-redirect-app

The least amount of code I could use to redirect traffic to another site. Made to be deployed to heroku.

Just set the environment variables SITENAME and SITEURL in your heroku configuration and you should be good to go.

Testing with Docker

If you want to test this, I've included a basic Dockerfile.

$ docker build -t test-php-app .
$ docker run -p $YOURPORTNAME:80 -e "SITENAME=$YOURSITENAME" -e "SITEURL=$YOURSITEURL" --rm php-test

Then visit the page at "localhost:$YOURPORTNAME/index.php".

About

The least amount of code I could use to redirect traffic to another site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages