Title: /go/ subfolder?
Last modified: April 5, 2024

---

# /go/ subfolder?

 *  Resolved [Deon](https://wordpress.org/support/users/deon-b/)
 * (@deon-b)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/go-subfolder/)
 * Hello John!
 * I want to create a /go/ or /recommend/ subfolder to contain all redirects which
   will be all affiliate links (1000+) and then:
   1) block this in robots.txt 2) 
   set it as no-index
 * Can I use your plugin for this case and if yes, how would that work? Would I 
   need to install wordpress on mywebsite.com/go/ separately?

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/go-subfolder/#post-17554838)
 * Sure you can use it. Nothing special needs to be done and you don’t need a separate
   installation. Just install the plugin and create your redirects.
 *  Thread Starter [Deon](https://wordpress.org/support/users/deon-b/)
 * (@deon-b)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/go-subfolder/#post-17554842)
 * Hey John thanks for the quick reply!
 * So you’re saying I don’t need to create a /go/ subfolder, I can just add /go/
   to the link every time, so for example:
   **Source URL:** /go/product**Target URL:**
   product.com
 * Even if mysite.com/go/ doesn’t exist?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/go-subfolder/#post-17554846)
 * Yes, that’s one of the main purposes behind the plugin. It’s not based on real
   directories or pages.
 *  Thread Starter [Deon](https://wordpress.org/support/users/deon-b/)
 * (@deon-b)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/go-subfolder/#post-17554859)
 * If it’s not based on real directories, if then I place a
 * disallow: /go/
 * will that prevent google from crawling all affiliate links like:
 * /go/1
   /go/2/go/3
 * Etc?
 * I thought this would only work if there was an actual directory named /go/
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/go-subfolder/#post-17554871)
 * It makes no difference whether they are real directories or not. WordPress pages
   are also not real and still work fine.
 *  Thread Starter [Deon](https://wordpress.org/support/users/deon-b/)
 * (@deon-b)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17702487)
 * Hi John,
 * but how do I set all these new “pages” `website.com/go/product` from being indexed.
   Is there a way to add a no-index meta tag to all of them like some affiliate 
   plugins do?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17702494)
 * You can find HTTP headers here:
 * [https://redirection.me/support/site-options/](https://redirection.me/support/site-options/)
 *  Thread Starter [Deon](https://wordpress.org/support/users/deon-b/)
 * (@deon-b)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17705294)
 * Thanks John,
 * Basically if I choose “site”, your plugin will apply no-index to the whole site?
   That is like a nuclear bomb, I think that option should be removed for safety.
 * If I select “redirect” it will apply no-index only to the redirects created using
   your plugin or also to other redirects I created in htaccess in the past?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17705362)
 * > I think that option should be removed for safety
 * Your needs are not the same as others.
 * > If I select “redirect” it will apply no-index only to the redirects created
   > using your plugin or also to other redirects I created in htaccess in the past?
 * The plugin has no knowledge of redirects outside of Redirection. It will only
   be applied to the ones in the plugin.
 *  Thread Starter [Deon](https://wordpress.org/support/users/deon-b/)
 * (@deon-b)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17710790)
 * [@johnny5](https://wordpress.org/support/users/johnny5/)
 * I added the no-index x-tag following the instructions:
   [https://prnt.sc/_syG5gY9INzs](https://prnt.sc/_syG5gY9INzs)
 * How can I verify that the no-index tag is working correctly? Here it seems it’s
   not working:
 * [https://prnt.sc/X59tTEu65sYA](https://prnt.sc/X59tTEu65sYA)
 * Thank you!
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17710950)
 * Have you cleared any caches?
 *  Thread Starter [Deon](https://wordpress.org/support/users/deon-b/)
 * (@deon-b)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17713687)
 * Thanks John, I don’t have any caching plugin on the site, but now I checked this
   with Command Line, and it shows the no-index.
 * Is there a php code you can give me to put in my functions php to hardcode these
   no-indexes for the redirections?
 * I would feel safer with that, so if the plugin fails me at some update, I won’t
   have 2000 thin URLs indexed in google.
 * I think we’re looking at something similar to this?
 * `function ta_add_noindex_headers() { `
   `header( 'X-Robots-Tag: noindex, nofollow');``}``
   add_action( 'ta_before_link_redirect' , 'ta_add_noindex_headers' );`
 * I copy pasted the above from a similar redirection plugin support page, but I
   wouldn’t know how to adapt it for your plugin.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17714547)
 * I don’t have any PHP code for that, no. There’s no reason to think the plugin
   will stop working, and it’s not really a problem that’s ever happened before.

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

The topic ‘/go/ subfolder?’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/go-subfolder/#post-17714547)
 * Status: resolved