• Resolved omniafausta

    (@omniafausta)


    I can’t switch from 301 PHP redirect to .htaccess redirect

    if I try i get a blank page and nothing happens, going back to the settings, it is still at PHP redirect.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    When you see the blank page, do you see any console errors (you can check this by right clicking on the screen, then click “inspect element’, console).

    Please post any console errors you see here, that should point us in the right direction.

    Thread Starter omniafausta

    (@omniafausta)

    errors:
    TypeError: s is undefined
    and:
    Uncaught (in promise) TypeError: s is undefined

    and also something about Unsupported media types

    Do you need more of the info that is below these lines?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    If you install the wp debugging plugin, do you see any errors after enabling this setting in the debug log?

    Thread Starter omniafausta

    (@omniafausta)

    I have installed it, but not sure what I should be looking for in the debug log

    Thread Starter omniafausta

    (@omniafausta)

    i see something about a htaccess error like this:

    SELECT option_value FROM wp_options WHERE option_name = ‘rsssl_htaccess_error’ LIMIT 1

    require_once(‘wp-admin/admin.php’), do_action(‘admin_init’), WP_Hook->do_action, WP_Hook->apply_filters, rsssl_wrap_htaccess, get_site_option, get_network_option, get_option

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Is there also an error in the log? The above shows a select statement, but not an error as such.

    Thread Starter omniafausta

    (@omniafausta)

    No, not a line starting with ERROR to be found, all lines in the log start with either SELECT, SHOW, UPDATE, or DESCRIBE (and not all about rsssl)

    Thread Starter omniafausta

    (@omniafausta)

    just updated my PHP version from 7.4 to 8.1

    still no result but now de debug file looks very different. Still nthing about rsssl, but some mentions of PHP Deprecated: strip_tags(): and PHP Deprecated: preg_match(): in wp-includes/formatting.php

    but my guess is that this has nothing to do with this?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    These have nothing to do with the issue indeed.

    I have created a debug version of the plugin:
    https://github.com/Really-Simple-Plugins/really-simple-ssl/tree/debug-mode

    Can you install this branch (use the green ‘code’ button to download the zip).

    Please deactivate the current one first.

    Then please post the console log you see here, so I can see some more detail about the error you are experiencing.

    Thread Starter omniafausta

    (@omniafausta)

    when deactivating the current one, should I choose to stay on https or go back to http. My guess is stay on https, but thought it better to check first!

    by the way: I have the same issue in another site at the moment so it is not just this site. I think both sites are with the same host, but I would have to check

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Please choose to stay on https.

    I have just made some changes on this branch, in response to another user with a similar issue. Maybe this resolves your issue as well.

    If not, let me know where it fails and I can probably fix it.

    Thread Starter omniafausta

    (@omniafausta)

    Hi Rogier,
    Thanks, I finally got around to checking this, and yes, this fixes it! I have renamed the folder (removed the debug-mode) not sure if I should?
    Can I now leave it like this? And will future updates work?

    Thanks again!

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Great, thanks for confirming! This will be included in the next update, so future updates won’t be a problem.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Can’t enable .htaccess redirect’ is closed to new replies.