I have an application that needs to change domain
app.com.br
I need to switch to
app2.com.br
However while I do not change the dns I need a temporary redirect
for example
app.com.br/path/teste -> app2.com.br/path/teste
I can do this by putting a header in index.php but if someone goes directly into a path without going through the index php it is not redirected.
How can I fix this?