Redirect Not Working

Hi,

I cannot get the redirect working to a selected page in the Login Welcome Page (https://frimleytennisclub.org/secure-members-area/) - it always goes to the WP Admin area. I’ve tried removing the plugin and it’s data and reinstalling but it still doesn’t work. I’ve also checked with the theme developers and it isn’t an issue with the theme.

Please - does anybody know how to fix this?

Go to General Options -> Member Profile Modifications -> Redirect Members ... and change the setting to Yes. Then scroll to the bottom and hit Save All Changes.

Also make sure that you have created a Membership Options Page.

Thank you for your reply - I’ve done this and set a Login Welcome Page and also a Membership Options Page but it still redirects to the WP admin area.

Incidentally, I deactivated all plugins except S2Member and still no joy.

Have you got some caching running (e.g. at server level) or has some modification been made to your .htaccess file (perhjaps by a now-deactivated plugin)?

Also try with a different browser. If that works, then you need to clear your browser cache.

No server level cache running and I tried with a different browser, but it still won’t redirect.

And what about .htaccess file?

Hi,

This is what I have:

RewriteEngine On RewriteRule .* - [E=noconntimeout:1] RewriteRule .* - [E=noabort:1] # BEGIN s2Member GZIP exclusions RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR] RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1 RewriteRule .* - [E=no-gzip:1] # END s2Member GZIP exclusions # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

I don’t know what these lines are for, but I certainly don’t have anything like them on my sites:

RewriteEngine On
RewriteRule .* - [E=noconntimeout:1]
RewriteRule .* - [E=noabort:1]

I removed those lines and it didn’t make any difference.

I also deactivated my theme and used Twenty Sixteen but it still redirects to the WP admin area.

Then either double-check all your settings or else reinstall the whole site from scratch. Or reinstall s2Member from scratch. But if you do the latter, first set Plugin Deletion Safeguards to No and save before deleting s2Member. Otherwise reinstalling it will make no difference.

The issue is with the database. I reinstalled the site and the redirection worked fine. However when I imported my backup database the problem started again. What in the database could be causing this?

Does the problematic database include, in the wp_options table, a field called ws_plugin__s2member_options?

If so, your installation of s2Member is corrupted, and you will need to reinstall it using the method I described above.

I tried that and it didn’t work unfortunately

Then you have a problem with something else in your database, which is unrelated to s2Member.