Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Languages