: Need to redirect to another server with no access to DNS A record I've a website which is on two servers - the one it's on now malfunctioned. I have the site hosted on a second server,
I've a website which is on two servers - the one it's on now malfunctioned. I have the site hosted on a second server, but have no access to the DNS Records to point the A Record to the new server IP.
Can I redirect the URL to the new server without access to the DNS records?
More posts by @Bryan171
4 Comments
Sorted by latest first Latest Oldest Best
No, you can't really do that. You're essentially asking if you can change the A record of the domain name, without changing the A record of the domain name.
@msanford 's solution could work temporarily, but you could redirect to your new IP instead of newdomain.com, assuming your site is the only one hosted on the new IP address.
If both servers are on the same network (same hosting provider for instance) then you could remap your servers' external IP addresses. This way you could just leave the DNS records pointing to X.X.X.X and have that IP mapped to your new server.
To point a domain name to another server you need to change the A record. No way around that. So work towards getting access to the DNS records.
A slightly elegant stop-gap solution, using Apache rewrites:
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ newdomain.com/ [L,R=302]
Stick that into an .htaccess file in the web root of the site in question. This will take all requests to your server and rewrite them to newdomain.com/{whatever page was specified}.
But if you want a permanent solution to ensure that your old domain points to your new server, you will have to gain access to the DNS because by redirecting your visitors, they are leaving your old domain name (which is probably something you don't want in the long term).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.