I have single web application on the server with multiple domain names (pittsburgh-app.com, philadelphia-app.com, etc).
Now the domain names are changing to (new-pittsburgh-app.com, new-philly-app.com, and so on).
So when I setup the following redirection in a new conf file it works:
<VirtualHost *:8080> ServerName pittsburgh-app.com RewriteEngine on RewriteRule ^/(.*) http://new-pittsburgh-app.com/$1 [L,R=301] </VirtualHost>
But the second redirection does not:
<VirtualHost *:8080> ServerName philadelphia-app.com RewriteEngine on RewriteRule ^/(.*) http://new-philly-app.com/$1 [L,R=301] </VirtualHost>
Can I not setup multiple redirections this way?
NB: I setup the second redirection in a separate conf file as well. Port 8080 necessary because that's what the load balancer uses.