WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. peopleinside
    Member
    Posted 7 months 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.

    http://wordpress.org/plugins/wordpress-https/

  2. peopleinside
    Member
    Posted 7 months 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
    Member
    Posted 7 months ago #

    But only work if is before

    <IfModule mod_rewrite.c>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.