• Is it possible to have the Hide Backend feature redirect a user to the HOME page (empty redirection slug) instead of to something like not_found?

    The only way I can currently think of doing this is to use something like not_found, and then to manually add a redirect to .htaccess, but I may just be overlooking something.

    How would I best do this?

    https://wordpress.org/plugins/better-wp-security/

Viewing 7 replies - 1 through 7 (of 7 total)
  • @angrygerman

    Yes, removing the default value “not_found” from the Redirection Slug setting will redirect users attempting to access “wp-admin” or “wp-login.php” (while not logged in) to the homepage.

    Just make sure the Enable Redirection checkbox is ticked.

    However users attempting to access “admin”, “login” or “dashboard” will still receive a 404.

    If the info provided above answers your question please mark this topic as ‘resolved’.

    dwinden

    Thread Starter AngryGerman

    (@angrygerman)

    @dwinden – thanks for the quick response.

    The problem is that leaving the slug empty will trigger a “The Redirection Slug value cannot be empty.” error message, so that doesn’t seem to work.

    Am I overlooking something?

    @angrygerman

    Ah right, I tested while using the 5.3.7 release.

    So I just tested again in 5.4.5 and indeed it does no longer work.
    Even tried to manually empty the settings value as stored in the database but I’m sorry to say it simply does not work anymore 🙁

    dwinden

    Thread Starter AngryGerman

    (@angrygerman)

    Do you know if there is there a reason for this, or if this is going to get fixed?

    It seems a bit weird to require a slug there, and as you said, it did work before.

    @angrygerman

    Fully agree with you. The new 5.4.x UI breaks a LOT of things …
    It will probably take a while before all these bugs get fixed again.

    My advise: downgrade to the 5.3.7 release and come back for reevaluation in 6 months.

    dwinden

    @angrygerman

    Correction: Manually editing the theme_compat_slug setting in the database does work.

    Previously I made a stupid mistake while editing which broke the Hide Backend functionality.

    Use phpMyAdmin and look for the itsec-storage option in the wp_options table.

    Search for and change:

    s:17:”theme_compat_slug”;s:9:”not_found”;

    into:

    s:17:”theme_compat_slug”;s:0:””;

    dwinden

    Has anyone overcome yet?
    I still faulty and could not save anything? 🙁

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide Backend / Redirection Slug empty possible?’ is closed to new replies.