• Resolved Slavek

    (@jackoneill)


    Hi, I’m trying to redirect HTTP to HTTPS with .htaccess, and now when I try to access the HTTP version of the website, I’m always taken to HTTPS and there is wp-content/cache/ in its URL. But this is not happening in every browser. For example, in Opera, I’m taken to the HTTP version.
    https://www.loom.com/share/27fbf075d5e942409385b0189c16e2f9

    In my .htaccess file, there is currently:

    # BEGIN WpFastestCache
    # Modified Time: 24-10-22 8:33:00
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    <strong>RewriteCond %{HTTPS} =on
    RewriteCond %{HTTP_HOST} ^investmentalbania.com</strong>


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteEngine On
    <strong># all redirection HTTP -> HTTPS
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]</strong>
    </IfModule>
    # END WordPress

    What should I do to make it work?

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘wp-content/cache/ in URL when accessing HTTP’ is closed to new replies.