Title: Unwanted pages / posts generated
Last modified: August 4, 2017

---

# Unwanted pages / posts generated

 *  [Classic105](https://wordpress.org/support/users/danielment/)
 * (@danielment)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/unwanted-pages-posts-generated/)
 * I have a photography website. I just noticed thousands of unwanted URLs of my
   website was indexed by Google. After analyzing the URLs I found out all subdirectories
   are file names: If you put a file name in the position of a subdirectory, It 
   makes the URL something like a page / post, of course unwanted.
    For example 
   my file name is “_AEJ8196-1900-1045.jpg” . If I put “_AEJ8196-1900-1045” as a
   subdirectory we will have this: [http://www.danielment.com/_AEJ8196-1900-1045/](http://www.danielment.com/_AEJ8196-1900-1045/)
   which is something like a post or page. There are thousands of URLs like this
   and I’m afraid it’s not good for SEO. I disabled all of my plugins and changed
   theme several themes but still I have the same problem.
    -  This topic was modified 8 years, 9 months ago by [Classic105](https://wordpress.org/support/users/danielment/).
    -  This topic was modified 8 years, 9 months ago by [Classic105](https://wordpress.org/support/users/danielment/).
    -  This topic was modified 8 years, 9 months ago by [Classic105](https://wordpress.org/support/users/danielment/).

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

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/unwanted-pages-posts-generated/#post-9379955)
 * These are attachment pages. All uploads get them.
 * SEO plugins like Yoast SEO have options for disabling indexing of these, if you
   want to look into that:
    [https://en-au.wordpress.org/plugins/wordpress-seo/](https://en-au.wordpress.org/plugins/wordpress-seo/)
 *  Thread Starter [Classic105](https://wordpress.org/support/users/danielment/)
 * (@danielment)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/unwanted-pages-posts-generated/#post-9380040)
 * Thank you Jacob!
    First I wanted to know what really made this problem? I think
   solving the problem is better than hiding them from search engines. As my website
   gets bigger I’ll have more URLs and it’ll make my data base bigger and bigger
   without any reason. This issue is only on my website even with disabling plugins
   and changing themes. Regarding your suggestion using Yoast Seo I would say there
   are thousands of files / URLs with different names. How can I edit robots.txt
   in a way that hides all of those URLs / paths from search engines?
 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/unwanted-pages-posts-generated/#post-9380095)
 * It’s not a ‘problem’ per-se, that could be prevented. It’s just how WordPress
   behaves. So the only solution is using a plugin like Yoast to either redirect
   these or add a noindex tag to the header so that they won’t be indexed.
 * robots.txt itself probably won’t be much help because the URLs are indistinguisable
   from posts.
 *  Thread Starter [Classic105](https://wordpress.org/support/users/danielment/)
 * (@danielment)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/unwanted-pages-posts-generated/#post-9382589)
 * Thank you again Jacob!
    I found out that I can do it through Yoast/titles and
   meta/special pages. [https://kb.yoast.com/kb/noindex-for-special-pages-in-yoast-seo/](https://kb.yoast.com/kb/noindex-for-special-pages-in-yoast-seo/)
   But I don’t know how can I define the pages I want to noindex? I guess maybe %%
   filetitle%%? Am I wrong?

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

The topic ‘Unwanted pages / posts generated’ is closed to new replies.

## Tags

 * [file name](https://wordpress.org/support/topic-tag/file-name/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Classic105](https://wordpress.org/support/users/danielment/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/unwanted-pages-posts-generated/#post-9382589)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
