Got error 404 by accessing a post

Hi all,

I have a site running this S2 member plugin.
When i access a protected page the plugin redirects to the login page (Membership Options page), but when i access a protected post the error 404 page appears instead of the MOP.

Can someone give me some pointers please?

Best regards,

Sjoerd

Found a solution… I made an if statement on the 404.php. If (is_user_logged_in()) then show error 404 message.
Otherwise echo wp_login_form( $args );

I let Wordpress do the work. After login you are automatically on the right post :wink: