Please try to update v1.2.1.1 and see if it works. Otherwise, you may check the configuration of your hosting.
Regards,
Smartdevth
Hey Smart!
Thanks. Didn’t notice it was out of date. I just updated it, and there is no change. Can you advise me on what I have to check regarding to hosting?
Hey Smart. I’ve noticed it has to do with Swift Security and how it “hides wordpress directories”. Do you have any ideas on how to make these two compatible? Somewhere to edit perhaps to make this work?
Hi Mike,
Have you tried to deactivate the security plugin and see if redirection is working?
I did, and it does work so it is Swift Securities fault. Just wondering if you had any ideas as to why. Maybe I’ll try bothering them 😀
I will go checking for the swift security code, never try it before.
Perhaps it is about redirection setting or rewrite rule of this plugin?
In a meantime you could check about these setting if they exist.
Regards,
Smartdevth
They do add a ton of rewrite rules to my htaccess. I tried editing it to see which lines were causing the problem and I broke things lol.
The codes which broke redirection are
if (isset($this->_settings['redirectFiles']['wp-login.php'])){
$filters = array(
'login_url',
'logout_url',
'register_url',
'wp_redirect',
'retrieve_password_message'
);
add_filters($filters, array($this, 'ReplaceLoginUrl'));
And these codes will make the redirection works again
if (isset($this->_settings['redirectFiles']['wp-login.php'])){
$filters = array(
'login_url',
'logout_url',
'register_url',
'wp_redirect',
'retrieve_password_message'
);
remove_filters($filters, array($this, 'ReplaceLoginUrl'));
If you couldn’t find the setting which is about the above codes(because I didn’t install the plugin but I just looked for these code)
I suggest you have to put this following code into you functions.php in your theme :
global $SwiftSecurity;
remove_filter('wp_redirect',array($SwiftSecurity->HideWP,'ReplaceLoginUrl'),100);
Redirection should work fine after you insert this code.
Cheers !