• Resolved jenvander

    (@jenvander)


    Something keeps rewriting http to https, but we’re not ready for SSL yet. In fact, this started happening before we ordered an SSL cert for the site. Can’t log into wp-admin at all. I’ve been trying all the usual tricks. Tried changing .htaccess, renaming plugins folder, I even added a rewrite rule to .htaccess to convert https to http. This just started happening one day, no idea what might have caused it. Client didn’t touch the site, HostGator can’t figure out what’s going on (we got all the way to Tier3 support, and they checked the Apache configs and everything). Hostgator can’t tell what is rewriting the URLs.

    When attempting to get to any page except the home page, or when attempting to get to the home page via https, I see a blob reference like the following (in Chrome dev console), along with a file-not-found, which pulls up the Hostgator generic 404 page:

    blob:https://thistlegolfestates.com/aec288b0-49c0-425a-8e7b-228381928185

    Any ideas what might be going on? I have backups of the site, and I’ve tried restoring the files and database from a working backup, and that didn’t help. I’m stumped, and so is Hostgator. The Tier3 guy (and a co-worker) poured over the syslogs etc… and found nothing amiss. Ping and tracert show the correct IP address for the Hostgator server for this account.

    Could we have man-in-the-middle attack going on here?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jenvander

    (@jenvander)

    Well heck, I’m wondering now if this is even hosted where I was told it was hosted. Whois has something different to say 🙂 I’ll keep you all posted with what I find out next.

    Thread Starter jenvander

    (@jenvander)

    Well, indeed it is hosted where originally indicated. The WhoIs was a red herring. I re-installed a new WordPress site and it showed up, working. So I’m back to, what in the heck is doing those rewrites when I use the original files and database? If .htaccess has no effect, what else could do the rewrites?

    Maybe there’s an incompatible or out of date plugin.

    Thread Starter jenvander

    (@jenvander)

    I had renamed the plugins directory and it made no difference. Is there another action that I need to take to “turn off” plugins?

    What about compatibility of your theme, php version, cdn and dns setting? Because your connection is so slow response.

    https://www.uptrends.com/tools/uptime

    Thread Starter jenvander

    (@jenvander)

    I figured it out, and it’s an oddball thing. So another site hosted from this hosting account was updated to use SSL. The Thistle site lived in a subdirectory underneath that other site. The hosting company’s Apache server must only be reading the top level .htaccess file, instead of the usual hierarchical order, so that other site’s rewrite rules were being used instead of the actual Thistle site’s rules. So, all I had to do was move the files for the Thistle site up one level so that it was no longer nested under that other site and voila, it worked. Yikes.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Can’t log into wp-admin, something keeps rewriting URLs to https’ is closed to new replies.