Skip to content
The least amount of code I could use to redirect traffic to another site
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.htaccess
Dockerfile
LICENSE
README.md
composer.json
index.php

README.md

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".

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.