Support » Plugin: WordPress HTTPS (SSL) » SSL didn't work if visitor arrive from google (specific article) or in the 404

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have solved with this solution:

    In my wordpress folder i have edited the .htaccess file.
    The code is to add between BEGIN and END wordpress Tag.

    # BEGIN WordPress
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} wordpress_folder
    RewriteRule ^(.*)$ https://www.yourwebsite.ext/wordpress_folder/$1 [R,L]
    
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L]
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}$1
    
    # END WordPress

    But only work if is before

    <IfModule mod_rewrite.c>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SSL didn't work if visitor arrive from google (specific article) or in the 404’ is closed to new replies.