I'm upgrading my application to new PHP version.
For that I created two virtualhosts one server PHP 5.3 application and another with PHP 5.6.
My virtualhosts are like,
<VirtualHost *:80>
ServerName php53app.com
DocumentRoot /var/www/php_53/public
<Directory />
Options FollowSymLinks
AllowOverride All
AddHandler php-cgi .php
Action php-cgi /cgi-bin-php/php-cgi-5.3.0
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
and
<VirtualHost *:80>
ServerName php56app.com
DocumentRoot /var/www/php_56/public
<Directory />
Options FollowSymLinks
AllowOverride All
AddHandler php-cgi .php
Action php-cgi /cgi-bin-php/php-cgi-5.6.0
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
I'm planning migrate each url by url.
For example :
When I'm migrating /login
to new app, it should show php53app.com/login
instead of php56app.com/login
.
So my need is to serve all URLs in same domain name whether it is new or old. Is there any possible way by using apache's mod rewrite or something?