WordPress HTTPS (SSL)
SSL didn't work if visitor arrive from google (specific article) or in the 404 (3 posts)

  1. peopleinside
    Posted 2 years ago #

    If user arrive from google (link to article or page) the page can be not SSL and 404 page of wordpress work without https before.


  2. peopleinside
    Posted 2 years ago #

    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
  3. peopleinside
    Posted 2 years ago #

    But only work if is before

    <IfModule mod_rewrite.c>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress HTTPS (SSL)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.