• My site has been displayed on google with the “your site has been hacked” message or similar a few times now. This last time, Google says it is due to some malicious content with https://www.domain.com/admin – I have scanned the site and see nothing malicious, and when I type in the domain.com/admin it goes to domain.com/wp-admin is there a way I can disable this redirect? I’m hoping google will then take down the message.

Viewing 2 replies - 1 through 2 (of 2 total)
  • in your robots.txt files add next lines.

    The robots.txt is telling Google not to scan the wp-admin,admin and that’s a good thing. You don’t need Google to load your admin pages. It can’t anyway, so blocking it is the correct action.

    User-agent: *
    Disallow: /wp-admin/
    Disallow: /admin/
    Thread Starter mouschi

    (@mouschi)

    Ok, so that will get rid of the issue? Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to stop /admin redirect to /wp-admin’ is closed to new replies.