Re: Safari is redirected to login
Posted: May 10th, 2011, 11:45 am
It won't affect you, Anna, because nothing will change for search engines, just for web browsers.
— WordPress® ( Users Helping Users ) —
http://www.primothemes.com/forums/
<?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);
}
?>
<?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);
}
?>