__( 'Really Simple SSL HSTS test' ), 'test' => array($this, "rsssl_hsts_test"), ); return $tests; } public function rsssl_hsts_test() { $result = array( 'label' => __( '301 SSL redirect enabled', 'really-simple-ssl' ), 'status' => 'good', 'badge' => array( 'label' => __( 'SSL' ), 'color' => 'blue', ), 'description' => sprintf( '

%s

', __( 'You have set a 301 redirect to SSL. This is important for SEO purposes', 'really-simple-ssl' ) ), 'actions' => '', 'test' => 'really-simple-ssl', ); if (RSSSL()->really_simple_ssl->has_301_redirect() && RSSSL()->really_simple_ssl->wp_redirect && RSSSL()->rsssl_server->uses_htaccess() && !RSSSL()->really_simple_ssl->htaccess_redirect) { $result['status'] = 'recommended'; $result['label'] = __( '301 .htaccess redirect is not enabled.' , 'really-simple-ssl' ); $result['description'] = sprintf( '

%s

', __( 'The 301 .htaccess redirect is often the fastest and most reliable redirect option.' ) ); $result['actions'] .= sprintf( '

%s

', esc_url( admin_url("options-general.php?page=rlrsssl_really_simple_ssl&tab=settings") ), __( 'Enable 301 .htaccess redirect', 'really-simple-ssl' ) ); } return $result; } } }