Let's say my web can be accessed with www.example.com
and example.herokuapp.com
.
How can I redirect example.herokuapp.com/*
to www.example.com/*
?
Heroku suggests that I use HTTP status 301 Moved Permanently but doesn’t explain on how to do it.