php - Website reported as malicious because redirecting -


i have example site example.com in index.php i'm redirecting site

if ($_server['http_host'] == 'www.example.com') header('location: http://www.example.com/ru/'); 

antivirus detect redirecting malware, how change code that, antivirus not detect malware in redirecting ?

maybe way use .htacces rewrite:

rewriteengine on rewritebase /  rewritecond %{http_host} ^www\.example\.com$ rewriterule ^$ maindomain.com/ru [l] 

?

may there script effecting use meta tag below:

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

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -