I’ve created a sub domain, installed Wordpress and download the free version to evaluate if s2Member meets my needs. I have changed Open Registration to Yes, which the instructions say should unlock /wp-login.php?action=register. However, on clicking the link in the instructions or clicking on register on the default login page it takes me to the registration page for my main site rather that the sub domain. Am I missing something or is this a fault?
Open registration incorrect redirect
Thanks Tim, I’ve tried adding the suggested updates the wp_config file on both the main site and subdomain but it hasn’t solved the problem. I have a main site, development subdomain where I’m building an updated version of the main site, set up by someone that has left and then this temporary subdomain where I’m trying to evaluate s2Member. I set this up through my cPanel and used the install function to add wordpress…never done it, just assumed that was correct. Having searched for multisite, I’m definitely not using that… Is it because I’ve got two subdomains? Any other ideas, I’m still very new to this.
If you’re not using Multisite, then no, you don’t want to add those suggestions to your wp-config.php file.
s2Member runs fine on a subdomain, so that’s not the problem either.
But let’s keep things simple. First, check what you have in your General Settings for WordPress Address (URL) and Site Address (URL).
If you’re sure they are fine, then change to the 2016 theme, deactivate all your plugins, including s2Member, and see if you still have the same problem. If not, activate s2Member and test again. If still OK, activate the others one by one and test to identify the culprit.
The other obvious possibility is that the cause lies in your .htaccess file for either the main site or this subdomain site.
It was .htaccess file on the main site. It has redirects in there, I’ve commented them out and it works fine. What I don’t know is how the redirects got there and if they are still appropriate. I suspect they are correct as they are redirecting registrations to a specific registration form so just need to dig. Will put them back whilst I figure it out. If I put a redirect in the subdomain, will that be used over the main site version…I know it doesn’t relate to s2Member but any pointers as to how to resolve would be very welcome.
Thanks for your help anyway, much appreciated as I wouldn’t have known to look there.
Putting redirects in .htaccess files for both main the domain and a subdomain is a recipe for confusion. It would be much better to make the redirects in PHP, either in your theme’s functions.php
file or as an mu-plugin
.