: URL redirection to same domain on different server We have existing domain on non-IIS server and now we have moved it to IIS server. Client want us to redirect the URL from existing server
We have existing domain on non-IIS server and now we have moved it to IIS server. Client want us to redirect the URL from existing server to new server with same domain name.
We will modify the .htaccess file to redirect but if we redirect current abc.org to our PROD environment, then the url should still be abc.org. I am not sure whether we can have same domain (abc.org) for two PROD environment?
How to achieve this?
More posts by @Karen161
1 Comments
Sorted by latest first Latest Oldest Best
there are really three things you should do:
1) change the dns settings (change the A record to point to their new server) and wait for it to propagate.
2) while waiting for it to propagate you should setup a mod_proxy proxypass rule to send all requests to your server to the new one
httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
3) setup a mod_proxy proxypassreverse rule to help with any redirects, etc that come back from the new server
httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse
once you have waited for the dns to propagate to the new servers, you can turn off the mod_proxy and give your old server a different url to access it (you could even setup a cname on the dns entries for old.example.com pointing to the ipaddress of the old server and access it that way.)
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.