Page 1 of 1
can HTACCESS force a domain to our new IP?
Posted: Wed Feb 22, 2017 4:11 pm
by simonmlewis
We have a problem with ISP propagation. All our other sites we have copied to a new host, work, except one!
Is there a way in HTACCESS on the old server, to force it to look at the NEW IP of the new hosting? Via 301.
So we tell it to 301 the site to look at 88.88.88.88 for example? Or do we just have to wait for as long as it takes??
I know this won't fix the email issue, but be good if it can do the website.
Re: can HTACCESS force a domain to our new IP?
Posted: Wed Feb 22, 2017 4:55 pm
by Celauran
Nothing you can do about DNS propagation. You could potentially redirect the user to a specific IP, but that's probably going to look pretty dodgy. Best to just wait it out.
Re: can HTACCESS force a domain to our new IP?
Posted: Wed Feb 22, 2017 5:02 pm
by simonmlewis
Its now over 48 hours. Just taking so long.
How would we redirect user to specific IP?
Thing is, it seems to be only really me that it's affecting. Or maybe others on my ISP.
I just wondered if there was a HTACCESS way of forcing it, rather than my using Hosts file to work on the site in the meantime.
Re: can HTACCESS force a domain to our new IP?
Posted: Wed Feb 22, 2017 5:08 pm
by Celauran
Start by flushing your DNS cache. You can also check DNS propagation monitoring sites, like
https://dnschecker.org or
https://www.whatsmydns.net or
https://cachecheck.opendns.com/
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 1:50 am
by simonmlewis
And if they all show the new IP, but my Mac and PC still ping to the old one?
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 5:25 am
by Celauran
Then it sounds like a DNS cache issue to me. Might be your ISP, but you could always try from your mobile while not on wifi. Should be different DNS resolution.
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 5:33 am
by simonmlewis
On my mobile, it's fine. It's only on Wifi through my ISP.
I tried them yesterday but they chucked excuses at me, to the point of "It could be your CSS".... WHAT??????????
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 5:42 am
by Celauran
Should do the trick on macOS. Don't know about Windows.
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 6:50 am
by simonmlewis
I did that and it came back with "no matching processes were found".
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 6:52 am
by Celauran
Interesting.
Code: Select all
7:51 ~
❯ ps aux | grep -i dns
root 194 0.0 0.0 2497648 740 ?? Ss 1Feb17 0:32.68 /usr/sbin/mDNSResponderHelper
_mdnsresponder 180 0.0 0.0 2507560 3596 ?? Ss 1Feb17 1:10.68 /usr/sbin/mDNSResponder
Which version of macOS / OS X are you using? It has changed some over time.
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 7:18 am
by simonmlewis
Sierra.
Do I do it via Terminal? So it starts with my name in the $name, and go from there or not?
I may be doing it wrong.
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 7:24 am
by Celauran
Yes, through the terminal. Enter
and it should flush the cache.
Re: can HTACCESS force a domain to our new IP?
Posted: Thu Feb 23, 2017 7:24 am
by Celauran
simonmlewis wrote:So it starts with my name in the $name
Unclear what you mean by this. That could just be your prompt.
Re: can HTACCESS force a domain to our new IP?
Posted: Fri Feb 24, 2017 1:02 pm
by Vegan
add 8.8.8.8 to your DNS servers list