# Google search finding rw\_common files

**URL:** <https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374>\
**Category:** Lounge\
**Created:** [November 15, 2021, 5:08pm UTC](https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374 "2021-11-15T17:08:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [November 15, 2021, 5:08pm UTC](https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374/1 "2021-11-15T17:08:51Z")

</div>

How to stop rw\_common files and folders showing in search results?

I thought putting Options -Indexes in htaccess did this but it doesn’t

---

<div class="post-metadata">

**Author:** ![joeworkman](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeworkman/32/23780_2.png) [@joeworkman](https://forums.realmacsoftware.com/u/joeworkman)\
**Post date:** [November 15, 2021, 5:10pm UTC](https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374/2 "2021-11-15T17:10:35Z")

</div>

The easy way is probably `robots.txt`

You could also create an htaccess rule for any file under `rw_common` to send the robots nofollow HTTP header along with the request.

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [November 15, 2021, 5:26pm UTC](https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374/3 "2021-11-15T17:26:01Z")

</div>

Cheers Joe - not to clever with robots.txt - something like this in the root?

User-agent: \*  
Disallow: /rw\_common/  
Sitemap: [https://mydomain.co.uk/sitemap.xml](https://mydomain.co.uk/sitemap.xml)

---

<div class="post-metadata">

**Author:** ![joeworkman](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeworkman/32/23780_2.png) [@joeworkman](https://forums.realmacsoftware.com/u/joeworkman)\
**Post date:** [November 15, 2021, 5:37pm UTC](https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374/4 "2021-11-15T17:37:31Z")

</div>

That should do the trick!

---

<div class="post-metadata">

**Author:** ![joeworkman](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeworkman/32/23780_2.png) [@joeworkman](https://forums.realmacsoftware.com/u/joeworkman)\
**Post date:** [November 15, 2021, 5:37pm UTC](https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374/5 "2021-11-15T17:37:53Z")

</div>

I think you can remove pages that were indexed via the search console as well.

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [November 15, 2021, 6:40pm UTC](https://forums.realmacsoftware.com/t/google-search-finding-rw-common-files/41374/6 "2021-11-15T18:40:17Z")

</div>

Actually - Ive been a bit dumb here! I added Options -Indexes to my htaccess file in cPanel\>File manager…and forgot to save it!

So to be clear. Options -Indexes in htaccess WILL prevent people seeing rw\_common files (with a 403 access forbidden page). However, it is well worth having the robots.txt file to stop them from showing in SERPS to start with.

100 times: I must remember to press the ‘save’ button. 🙄
