I came across a problem using the great WordPress S2Member membership plugin. For some reason, if a person that wasn’t logged-in tried to view the Home Page (actually the Front Page) then the person would be redirected to the membership options page. There was nothing set to make the Home Page accessible to logged-in users only and I just couldn’t figure out why the Home Page was automatically redirecting to the membership options page.
Fortunately the fix is really simple. Here are the instructions to stop your Home Page from redirecting to the membership options page:
- From your WordPress Dashboard go to Settings -> General. Make a note of the Site Address (URL) field entry.
- Go to S2Member -> General Options -> Login Welcome Page. In the Or a Special Redirection URL? , before any replacement codes, change the field entry to be exactly the same as you noted in item 1 above.
- Save the changes.
The above of course will only work if you are using S2Member replacement codes. What had happened to cause the Front Page redirection problem on the Site on which I was working was that the URL had been changed to www.example.com from example.com. In other words, a domain name change had caused all visitors to the website that weren’t logged-in to be asked to become members.