Title: Google and wp-login.php
Last modified: August 19, 2016

---

# Google and wp-login.php

 *  [robos85](https://wordpress.org/support/users/robos85/)
 * (@robos85)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/google-and-wp-loginphp/)
 * In google webmaster tools I can see that Google try to index sites like this:
   my-domain.com/some-article/wp-login.php
 * How can I prevent Google to index that links. It’s off course error 404.
    Should
   I make some robots.txt file? If yes what should be in it?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [ryans149](https://wordpress.org/support/users/ryans149/)
 * (@ryans149)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/google-and-wp-loginphp/#post-1229174)
 * [http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449)
 *  Thread Starter [robos85](https://wordpress.org/support/users/robos85/)
 * (@robos85)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/google-and-wp-loginphp/#post-1229176)
 * I know that, but what rule should I put there?
 *  Thread Starter [robos85](https://wordpress.org/support/users/robos85/)
 * (@robos85)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/google-and-wp-loginphp/#post-1229178)
 *     ```
       User-agent: *
       Disallow: /cgi-bin
       Disallow: /wp-admin
       Disallow: /wp-includes
       Disallow: /wp-content/plugins
       Disallow: /wp-content/cache
       Disallow: /wp-content/themes
       Disallow: /trackback
       Disallow: /feed
       Disallow: */trackback
       Disallow: */feed
       Disallow: /wp-login.php
       Disallow: /*wp-login.php$
       Allow: /
       ```
   
 * Is that correct?
 *  [romanczar](https://wordpress.org/support/users/romanczar/)
 * (@romanczar)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/google-and-wp-loginphp/#post-1229508)
 * Did you find the perfect robots.txt file settings?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google and wp-login.php’ is closed to new replies.

## Tags

 * [wp-login.php](https://wordpress.org/support/topic-tag/wp-login-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [romanczar](https://wordpress.org/support/users/romanczar/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/google-and-wp-loginphp/#post-1229508)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
