• Resolved jcornell

    (@jcornell)


    I see that there are similar posts here and I’ve read several of them without seeing a solution that would apply to me.

    I just installed this redirection plugin. I entered settings to redirect the whole site (excluding wp-admin pages) https://blog.wellingtonhomeowners.com to another external URL https://engage.goenumerate.com/site/7295/communityfeed.php. This worked as desired for non-admin pages.

    However, when I now go to https://blog.wellingtonhomeowners.com/wp-login.php, it correctly brings up the wp login page as desired, but after login it also redirects me to the external URL instead of one of the wp-admin pages. And the redirection occurs also if I try to go directly to, for example, https://blog.wellingtonhomeowners.com/wp-admin/plugins.php.

    Since I can’t now get to the wp-admin pages, I can’t turn this redirection off and I can’t provide you with any more specifics of the settings I made for this plugin.

    Please let me know what settings I would need to make the redirection work with exceptions for all the wp-login and wp-admin pages, and how I can get into the wp-admin pages to actually implement these settings.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support MixHa

    (@mixha)

    Hello @jcornell,

    By default, Redirection plugin should not redirect any admin pages, exactly for the reasons you mentioned – so that users would not lock themselves out of wp admin area.

    You can disable all redirections by this plugin by deleting the plugin directory, usually located in:

    wordpress/wp-content/plugins/redirect-redirection

    I suspect that there might be another plugin that is interfering with this wp admin redirections, perhaps some that alters the login method, so please double check that.

    Kind regards

    Thread Starter jcornell

    (@jcornell)

    MixHa – I was able to delete the plugin files using your instructions and then login successfully. I then reinstalled and activated your plugin again, deactivated all the other plugins, cleared the browser cache, and tried again. Guess what? The same problem is still happening. Any other suggestions before I give up?

    Plugin Author iClyde

    (@iclyde)

    Hi @jcornell

    Our plugin should not work on wp-admin URLs including wp-login.php

    Which means there may be something wrong with our plugin configuration or particular version.

    Please, for now, go to your phpMyAdmin of the website or MySQL terminal and remove tables that ends with:

    1. irrp_redirectionmeta
    2. irrp_redirections
    3. irrp_redirection_logs

    That will reset the plugin and remove any existing redirections, if you will get redirected after that it may be related to other plugin or the redirection is cached on your side.

    We will inspect the issue further and make sure wp-login.php and wp-admin is still included in the latest release and if needed we will provide new version with correct solution.

    If you give me more examples of what kind of redirection you want, I can provide you ruleset for your needs that will work without issue you experienced.

    I hope it helps you resolve the issue further ??
    Thank you!

    Thread Starter jcornell

    (@jcornell)

    I deleted/dropped the 3 tables you mentioned. I then got an error trying to add the redirect rule again. I resolved this by deactivating and re-activating the plugin. After re-entering the rule to redirect All URLs (which is what I want), and clearing the browser cache again, the redirect behaved the same as before, still allowing me to get to the wp-login.php page but then redirecting me to the external website after login.

    I confirmed that without this redirect rule, the wp-admin page is displayed after login.

    For your debugging purposes, following is the csv-formatted data from the wp_irrp_redirectionmeta table:

    meta_id,redirect_id,meta_key,meta_value
    1,1,ignore_trailing_slashes,
    11,1,ignore_parameters,
    21,1,ignore_case,
    31,1,pass_on_parameters,
    41,1,redirect_code,301
    51,1,inclusion_exclusion_rules,
    61,1,redirect_options,are_case
    71,1,redirection_http_headers,
    81,1,rules_group1,”a:2:{s:7:””enabled””;s:1:””0″”;s:10:””login_info””;s:0:””””;}”
    91,1,rules_group2,”a:3:{s:7:””enabled””;s:1:””0″”;s:4:””role””;s:0:””””;s:9:””role_name””;s:0:””””;}”
    101,1,rules_group3,”a:3:{s:7:””enabled””;s:1:””0″”;s:8:””referrer””;s:0:””””;s:14:””referrer_value””;s:0:””””;}”
    111,1,rules_group4,”a:4:{s:7:””enabled””;s:1:””0″”;s:5:””agent””;s:0:””””;s:11:””agent_value””;s:0:””””;s:11:””agent_regex””;s:1:””0″”;}”
    121,1,rules_group5,”a:5:{s:7:””enabled””;s:1:””0″”;s:6:””cookie””;s:0:””””;s:11:””cookie_name””;s:0:””””;s:12:””cookie_value””;s:0:””””;s:12:””cookie_regex””;s:1:””0″”;}”
    131,1,rules_group6,”a:3:{s:7:””enabled””;s:1:””0″”;s:2:””ip””;s:0:””””;s:8:””ip_value””;s:0:””””;}”
    141,1,rules_group7,”a:3:{s:7:””enabled””;s:1:””0″”;s:6:””server””;s:0:””””;s:12:””server_value””;s:0:””””;}”
    151,1,rules_group8,”a:3:{s:7:””enabled””;s:1:””0″”;s:8:””language””;s:0:””””;s:14:””language_value””;s:0:””””;}”
    161,1,criterias,”a:1:{i:0;a:2:{s:8:””criteria””;s:8:””all-urls””;s:5:””value””;s:8:””all-urls””;}}”
    171,1,action,”a:2:{s:4:””name””;s:14:””a-specific-url””;s:5:””value””;s:53:””https://engage.goenumerate.com/s/wellingtonhomeowners””;}”

    And here is the csv-formatted data from the wp_irrp_redirection_logs table:

    “1”,”1″,”https://blog.wellingtonhomeowners.com%2Fwp-admin%2Findex.php/”,”https://engage.goenumerate.com/s/wellingtonhomeowners”,”2023-12-01 21:53:29″,”1701467609″,”200″,”301″,”is_not_404_redirect”,
    “11”,”1″,”https://blog.wellingtonhomeowners.com%2Fwp-admin%2F/”,”https://engage.goenumerate.com/s/wellingtonhomeowners”,”2023-12-01 21:55:24″,”1701467724″,”200″,”301″,”is_not_404_redirect”,
    “21”,”1″,”https://blog.wellingtonhomeowners.com/robots.txt/”,”https://engage.goenumerate.com/s/wellingtonhomeowners”,”2023-12-01 22:10:13″,”1701468613″,”200″,”301″,”is_not_404_redirect”,

    Plugin Author iClyde

    (@iclyde)

    Hi @jcornell

    We included some redundancy solutions in the latest release that should prevent issues like this in future.

    Let me know if you need any further help ??
    Thank you!

    Thread Starter jcornell

    (@jcornell)

    I just installed the latest version and this problem is resolved. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘redirection after wp-login’ is closed to new replies.