Viewing 15 replies - 1 through 15 (of 25 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    1. Install the plugin “better search and replace”
    2. If you have any caching plugins, clear the cache first then deacivate
    3. Run Better Search and Replace. Search for https://www.stijnspreekt.nl and replace with https://www.stijnspreekt.nl Note — no trailing slashes
    4. This will probably log you out. If not, log out.
    5. Delete all cookies in your browser related to your site.
    6. Login. Re-enble your caching plugins, if any.
    7. Deactivate and delete “better search and replace”.

    Thread Starter ClaitonLord

    (@claitonlord)

    Ok Steve. I run Autoptimize plugin and there is an empty cache function on it. Do i need to deactivate Autoptimize also?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes. Empty its cache and deactivate it.

    Thread Starter ClaitonLord

    (@claitonlord)

    Ok. What do i need to fill in in al these fields? I see Search, Replace with. And where do i need to put https://www.stijnspreekt.nl?

    • This reply was modified 7 years, 11 months ago by ClaitonLord.
    Thread Starter ClaitonLord

    (@claitonlord)

    Sorry, my bad! I did read way to fast

    Thread Starter ClaitonLord

    (@claitonlord)

    Steve, it wont run when i press Run ‘Search/Replace’

    Thread Starter ClaitonLord

    (@claitonlord)

    I think i need to select some tables? All of them?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    All tables. Dry run first. Then uncheck dry run. Make a database backup first, of course.

    Thread Starter ClaitonLord

    (@claitonlord)

    Ok i did run and say: D

    RY RUN: 44 tables were searched, 839 cells were found that need to be updated, and 0 changes were made.

    What now Steve?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Really? Did you actually read what I wrote? Run it with dry run UNCHECKED.

    Thread Starter ClaitonLord

    (@claitonlord)

    You said ‘Dry run first, then uncheck’. And to run it dry is checked! Ok let me do it again

    • This reply was modified 7 years, 11 months ago by ClaitonLord.
    Thread Starter ClaitonLord

    (@claitonlord)

    Done. I did everything you said.

    Looks like nothing changed? https://www.stijnspreekt.nl. still no HTTPS from WWW?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are the two URL fields in Settings set to https? That should auto-redirect. If not, force a redirect at the top of .htaccess (before the # Begin WordPress mark)

    
    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://www.stijnspreekt.nl/$1 [R,L]
    Thread Starter ClaitonLord

    (@claitonlord)

    Yes those are both HTTPS already, that was the first thing i did.

    Ok. I just opended htacces and i see this there. I think my hosting did this earlier. Should i replace this with your code?

    # 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
    Thread Starter ClaitonLord

    (@claitonlord)

    Full htacces content:

    # BEGIN EXPIRES
    ExpiresActive On
    ExpiresDefault "access plus 10 days"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/plain "access plus 1 month"
    ExpiresByType image/svg+xml "access 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-icon "access plus 1 year"
    # END EXPIRES
    
    # 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
    • This reply was modified 7 years, 11 months ago by ClaitonLord.
Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Website still redirects to HTTP instead of HTTPS’ is closed to new replies.