[BNM] Chrome redirecting sites

Oliver Marshall oliver at olivermarshall.net
Mon Feb 27 10:10:21 GMT 2017


Hmm neither of those options appear to work.

I don't think it's a DNS issue anyway as the IP doesn't change between
hosts, so the record is effectively the same.

The issue is either the host, but it works in incognito mode and IE, or
Chrome itself.

There is/was a redirect in place for the new host, but I've disabled
redirects in dev mode and it still redirects :(

Grrrrr

Olly

On 27 February 2017 at 09:54, Michael Mulqueen <michael at mulqueen.me.uk>
wrote:

> Hi Olly,
>
> If Haze's suggestion doesn't work, it sounds to me like there was a 301
> Redirect in the past. Being permanent redirects, the browser caches them
> effectively forever and it doesn't have to check with the server to see
> whether it's still correct. This is why 301 redirects are a potentially
> dangerous tool (if you screw them up, you have no way of correcting them
> because the browser won't check again to make sure they're still in force).
> ? I think you can clear this in chrome://net-internals/#httpCache as well.
>
> NB: I believe you can use the Cache-Control header to avoid problems like
> this, but not after the fact of course.
>
> Kind regards,
> Mike
>
> On Mon, Feb 27, 2017 at 9:41 AM Oliver Marshall <oliver at olivermarshall.net
> >
> wrote:
>
> > Hi chap(ess)s
> >
> > I'm looking at redoing a few of my sites. I've cloned the sites to a new
> > virtual host, given them all new hostnames (such as demo.mysite.com) and
> > updated the DNS and the wordpress database with the new hosts.
> >
> > Everything *should* be working.
> >
> > However if I go to http://demo.mysite.com in Chrome, it instantly
> > redirects
> > me to http://mycurrentsite.com. I don't even see the request in the
> apache
> > logs for the demo site.
> >
> > If I open an incognito window, then it works fine and I can access the
> demo
> > site (I've changed the title so I can identify it in the window).
> >
> > I've got no fancy plugins running that might do that, just a password
> > manager, hangouts, pintrest, tab manager.
> >
> > Any ideas why Chrome might be being an arse?
> >
> > Olly
> > --
> >
> > BNM Subscribe/Unsubscribe:
> > http://lists.brightonnewmedia.org/options/bnmlist
> >
> > BNM members often work together in the real world at:
> > http://www.theskiff.org
> >
> > Join the BNM community on Slack
> > https://bnmslackin.herokuapp.com/
> >
> > BNM powered by Wessex Networks:
> > http://www.wessexnetworks.com
> >
> --
>
> BNM Subscribe/Unsubscribe:
> http://lists.brightonnewmedia.org/options/bnmlist
>
> BNM members often work together in the real world at:
> http://www.theskiff.org
>
> Join the BNM community on Slack
> https://bnmslackin.herokuapp.com/
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
>


More information about the BNMlist mailing list