网站报告为恶意,因为重定向


Website reported as malicious because redirecting

例如,我在index。php中有一个站点example.com我重定向了这个站点

if ($_SERVER['HTTP_HOST'] == 'www.example.com')
header('Location: http://www.example.com/ru/');

防病毒检测到此重定向为恶意软件,如何更改代码,防病毒不检测恶意软件在我的重定向?

也许是使用。htacces的好方法:

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www'.example'.com$
RewriteRule ^$ maindomain.com/ru [L]

?

可能有一些脚本影响只是使用meta标签如下:

echo '<meta http-equiv="refresh" content="0; ,URL=http://www.example.com/ru">';