WordPress.org

Ready to get started?Download WordPress

Forums

HTTPS Redirect Loop - .htaccess? (2 posts)

  1. sky5725
    Member
    Posted 1 year ago #

    Hello!

    I accidentally replaced the wrong .htaccess (the one used for wordpress instead of the one in the subdir) while working on a subdomain which is simply a folder in the root folder for my host but I managed to put it back together - at least I think I did. However, now wordpress is giving me redirect loops, but only on my chrome browser, which tries to force HTTPS all the time.

    From any other browser that connects with HTTP, it works just fine. But if I try to connect with HTTPS, I get a redirect loop. I've verified thats its not just my browser/computer.

    I've searched for other posts like this and the one that offered a solution similar to adding more checks to the is_ssl() function did not work, in fact, HTTP stopped working.

    I would GREATLY appreciate it if someone could help me. This is what my .htaccess looks like:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thank you

  2. sky5725
    Member
    Posted 1 year ago #

    Edit: looking more into it, it keeps on changing from HTTPS to HTTP when I reload it on chrome. IE goes to HTTP regardless, FF using HTTPS finds a redirect loop, and with HTTP simply says 'connecting' but never loads.

Topic Closed

This topic has been closed to new replies.

About this Topic