Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Mark

    (@markwolters)

    Hi @ztsoyoye,

    which redirect option have you enabled in the plugin? If it’s the .htaccess redirect, could you post the contents of your .htaccess file here so we can check for potential issues?

    Thread Starter ztsoyoye

    (@ztsoyoye)

    I have the following ON:
    Mixed content fixer
    Enable WordPress 301 redirect
    Enable 301 .htaccess redirect

    How do I access the contents of my .htaccess file?

    Thread Starter ztsoyoye

    (@ztsoyoye)

    I believe i found the .htaccess file and it contained:

    # BEGIN rlrssslReallySimpleSSL rsssl_version[4.0.8]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    
    # END WordPress
    Plugin Author Mark

    (@markwolters)

    Hi @ztsoyoye,

    it could be the .htaccess redirect is not working correctly on your site. What you could try is to enable the ‘stop editing the .htaccess file’ option on the Settings->SSL page and then manually replace the following line in your .htaccess file:

    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    with

    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    Let me know if that resolved the issue.

    • This reply was modified 3 years, 9 months ago by Mark.
    Thread Starter ztsoyoye

    (@ztsoyoye)

    I’ve implemented this solution and I believe it is working atm. Thank you

    Hi Mark,
    Please allow me to ask here, because I have the same problem.

    2 of my subdirectories;
    ? https://vectorise.net/logo
    ? https://vectorise.net/services
    does not redirect to the correct ‘https’ URL, but it goes to the main page (https://vectorise.net) instead.

    my Really Simple SSL plugin settings are;
    Mixed content fixer – ON
    Enable WordPress 301 redirect – ON
    Stop editing the .htaccess file – ON
    Fire mixed content fixer with different method – ON

    and below are part of my .htaccess (tell me if you need to see all)

    <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]
    </IfModule>

    Plugin Author Mark

    (@markwolters)

    Hi @vectorism,

    could you also post the part of your .htaccess file which contains the Really Simple SSL .htaccess redirect? Did you try to replace

    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    with

    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    I don’t understand, why I cannot find any ‘SSL’ in the .htaccess file.
    This is the whole file of the .htaccess

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* – [E=Cache-Control:no-autoflush]
    RewriteRule \.object-cache\.ini – [F,L]
    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php – [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ – [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END NON_LSCACHE
    # BEGIN WordPress
    # The directives (lines) between “BEGIN WordPress” and “END WordPress” are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <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]
    </IfModule>
    # END WordPress
    # php — BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php56” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml
    </IfModule>
    # php — END cPanel-generated handler, do not edit

    Plugin Author Mark

    (@markwolters)

    It looks like the Really Simple SSL htaccess redirect hasn’t been enabled. Could you uncheck the ‘Stop editing the .htaccess file’ option and activate the htaccess redirect option to check if that resolves the issue?

    ok, I just change it, as image shown here, https://pasteboard.co/JRZQ4uD.png right..

    but no luck.

    doing your suggestion..

    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    with

    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    still the same, no luck.

    Plugin Author Mark

    (@markwolters)

    I don’t see anything in your .htaccess file that would cause this. Could you try if the issue occurs after temporarily switching to a default theme? And could you check if the wp-config.php file on the sites contains one of these rules:

    define( ‘WP_HOME’, ‘https://example.com&#8217; );
    define( ‘WP_SITEURL’, ‘https://example.com&#8217; );

    Hello,
    I have the exact same problem that ztsoyoye (@ztsoyoye) described.
    After enabling “Stop editing the .htaccess file” the issue appears to be resolved.
    Can I leave it like that or do I need to edit the .htaccess file?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    You can leave it like that without any issues.

    Thank you @rogierlankhorst.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Redirecting to the wrong page’ is closed to new replies.