<?php
add_filter('ws_plugin__s2member_content_redirect_status', 'content_redirect_status');
function content_redirect_status($status = 301) {
if ((int)$status === 301 && !empty($_SERVER['HTTP_USER_AGENT']) && preg_match('~(msie|trident|gecko|webkit|presto|konqueror|playstation)[/ ]([0-9\.]+)~i', $_SERVER['HTTP_USER_AGENT']))
return ($status = 302);
}
?>
Statistics: Posted by Jason Caldwell — May 10th, 2011, 6:29 pm
<?php
add_filter('ws_plugin__s2member_content_redirect_status', 'content_redirect_status');
function content_redirect_status($status = 301) {
if ((int)$status === 301 && !empty($_SERVER['HTTP_USER_AGENT']) && preg_match('~(msie|trident|gecko|webkit|presto|konqueror|playstation)[/ ]([0-9\.]+)~i', $_SERVER['HTTP_USER_AGENT']))
return ($status = 302);
}
?>
Statistics: Posted by Cristián Lávaque — May 10th, 2011, 2:08 pm
Statistics: Posted by Cristián Lávaque — May 10th, 2011, 11:45 am
Statistics: Posted by AnnaSkye — May 9th, 2011, 11:22 pm
tkittredge wrote:
Correct me if I am wrong, but with a status of 302, search engines and crawlers would simply index and reindex the MOP but still be unable to access restricted content.
Thanks for the response to a challenging issue.
Membership Options Page
http://example.com/protected-page-1/
Membership Options Page
http://example.com/protected-page-2/
Membership Options Page
http://example.com/protected-page-3/
Membership Options Page
http://example.com/protected-page-4/
Statistics: Posted by Jason Caldwell — May 4th, 2011, 3:54 pm
Statistics: Posted by tkittredge — May 4th, 2011, 3:09 pm
Statistics: Posted by Cristián Lávaque — May 4th, 2011, 11:24 am
Statistics: Posted by Jason Caldwell — May 4th, 2011, 9:16 am
Statistics: Posted by Cristián Lávaque — May 4th, 2011, 1:22 am
Statistics: Posted by dwllnet — May 3rd, 2011, 9:43 pm
<?php
add_filter("ws_plugin__s2member_content_redirect_status", "content_redirect_status");
function content_redirect_status($status = 301){ return ($status = 302); }
?>
Statistics: Posted by Jason Caldwell — May 3rd, 2011, 8:26 pm
Statistics: Posted by dwllnet — May 3rd, 2011, 7:22 pm
Statistics: Posted by Jason Caldwell — May 3rd, 2011, 7:07 pm
Statistics: Posted by tkittredge — May 3rd, 2011, 6:25 am
Statistics: Posted by dwllnet — May 3rd, 2011, 12:28 am
Statistics: Posted by tkittredge — May 2nd, 2011, 11:36 pm
Statistics: Posted by dwllnet — May 2nd, 2011, 8:20 pm
Statistics: Posted by dwllnet — May 2nd, 2011, 10:28 am
Statistics: Posted by dwllnet — May 2nd, 2011, 9:26 am
Statistics: Posted by Jason Caldwell — April 30th, 2011, 8:21 am
Statistics: Posted by dwllnet — April 30th, 2011, 7:27 am
Statistics: Posted by Jason Caldwell — April 30th, 2011, 6:58 am