Support » Plugin: Sky Login Redirect » Redirect to prior page doesn’t work – subdirectory WP multiple installs

  • Resolved johnching

    (@johnching)


    I am using SLR in a root folder WP main install and it is working fine. When I installed it in a second WP install in a subdirectory (I am doing multiple installs of WP each with their own separate files and databases which is permitted in WP), the redirect to ‘the previous page’ doesn’t work. It simply clears out the password field and remains on the login page, although the user is already logged in.

    It doesn’t work in the subdirectory when the install is a clone of the main WP in the root. It doesn’t work in the subdirectory when I installed a new out of-the-box WP and just have SLR as a single plugin in it.

    My main WP install with SLR which works is located in the root folder of eg. http://www.example.com
    My second WP install with SLR which doesn’t work is located in the subdirectory of eg. http://www.example.com/test

    I am using Sky Login Redirect version 3.3 and WordPress version 5.6

    Could you tell what’s wrong?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Biscay

    (@skyminds)

    Hi John,

    Thanks for reaching out – can you let me know what you set in these directives in your wp-config.php file:

    WP_HOME
    WP_SITEURL

    The home url, where visitors land, seems to be https://example.com/test/fp/
    In which folder are the WP files located?

    Best,
    Matt

    Thread Starter johnching

    (@johnching)

    Hi Matt,

    1) The directives in my wp-config file:

    define('WP_HOME','http://example.com/test');`
    define('WP_SITEURL','http://example.com/test');`

    The site only has 2 pages:

    a) The home url is https://example.com/test/sample-page set as a front page under Settings, Reading. If you type in https://example.com/test you will go to this page.

    b) The page of containing the Login button is https://example.com/test/fp (sorry about the fp slug, it is actually the second page, not the front page) This is the page the user is supposed to be redirected to after login in.

    3) The WP files are installed/located in a folder at public_html/test . In a folder called test under public_html

    • This reply was modified 1 year, 4 months ago by johnching.
    • This reply was modified 1 year, 4 months ago by johnching.
    Plugin Author Matt Biscay

    (@skyminds)

    Hi John,

    I’ve released v3.4.1, which solves the double-login issue when WordPress is installed in a subdirectory.

    Can you try it out on your end?

    Thank you,
    Matt

    Thread Starter johnching

    (@johnching)

    Dear Matt,

    Thank you for your speedy update. I have activated V3.4.1 in the subdirectory and indeed it is working as it should again- after login the user returns to the previous page he was viewing. Once again thank you for solving the issue so fast.

    Warmest Regards,

    John

    Plugin Author Matt Biscay

    (@skyminds)

    Hello John,

    Thank you very much, I’m glad it’s now working for subdirectory installs 🙂

    Kindest regards,

    Matt

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect to prior page doesn’t work – subdirectory WP multiple installs’ is closed to new replies.