I have an old legacy website that I have migrated to wordpress.
Some of the functionality will remain on the old server and be accessed via IP address, however this functionality requires a secure http connection and our current certificate is valid for the domain name which is being switched across.
I have added a redirect using mod_write to our htaccess file
Redirect /mySecurePage https://220.127.116.11/mySecurePage
However a warning is presented to user as certificate is registered to the domain name - the same domain name which now points to different ip (insecurely, and redirects to secure page on old server/different ip).
What is the best solution ?
I have full access to both servers, but wanted to avoid transferring the old functionality across to new server - its a right mess. Can I change the certificate, or do some fancy url rewriting ?