Custom URL for Login not Working

I use AIOS Plugin for Security and to change the login url, so it’s not my domain /wp-login.php but something else.

I use Better Notifications Plugin for Notifications.

When a new free user registers, they’re sent the email following what’s set on Better Notifications, but the url is using wp-login.php instead of my customized url.

When a password request is requested, things work as expected.

s2member’s settings page says it’s not interfering with my new user notifications. :thinking:

BetterNotifications support told me to try my site without s2member. The registration form does not work without it, so I can’t test that.

I have a topic at https://wordpress.org/support/topic/password-link-using-wp-login-even-when-customized-url-2/

I also opened a topic at Better Notification’s plugin support.

I am clueless on what could be happening.

These are the shortcodes being used by better notifications for new registration emails:

Is it possible that s2member is interfering with those?

Set-up Password URL: [password_url] (WordPress > 4.3)
Set-up Password URL (Raw): [password_url_raw] (WordPress > 4.3)

Problem is happening with both paid and free user registrations.

Any idea on if this is a bug or related to s2member in any manner?

Quick note: I am still investigating. Turning Better Notifications OFF didn’t solve the problem. Even though wordpress started to use s2member’s settings, the variable %%wp_set_pass_url%% was still wrong and using the default wp-login.php address for new users (password reset works normally). It leads me thinking the issue needs to fixed by AIOS but I feel it’s useful to have this topic here, just in case anybody else has issues.

Suggestions to troubleshoot this are very welcome!

:tulip:

Hmm… Can you create a clean installation for testing?

Then:

  1. first try just wordpress’ registration and see what you get
  2. activate s2Member and try a new registration
  3. try s2Member again but with the custom new user email
  4. deactivate s2, activate Better Notifications and test again
  5. activate both plugins, and test again
  6. try both again, but without s2’s custom new user email

Which ones behave as expected, and which didn’t?

:slight_smile:

1 Like

If I create a new user using the back end, the link sent to the user is correct.

If I use the form to register a new user (free or paid, same problem) the link sent uses wp-login.php instead of the customized url.

If the form for user registration is created by s2member, it’s likely using wp-login.php instead of capturing the variable that hosts the correct url, which should be adjustable (or something like that, sorry for my inaccuracy, you likely get my point, though :slightly_smiling_face:).

:tulip:

If the form for user registration is created by s2member, it’s likely using wp-login.php instead of capturing the variable that hosts the correct url, which should be adjustable

Okay… But you showed me the screenshot of s2Member saying that it’s not applying the custom email. So although you’re using the s2 form for the registration, something else is working on the email, apparently.

Did you do the tests I suggested?

:slight_smile: