GoCodes 1.3.0 Released

Version 1.3.0 of the GoCodes redirection plugin has been released. Several long-awaited improvements have been made.

  • .htaccess editing is no longer required. As long as you are using “pretty permalinks” instead of the default ?p=123 type thing you can just drop the GoCodes plugin in and activate it. The behind-the-scenes magic will do the rest. (If you are upgrading from a prior version of WordPress, it is recommended that you remove the redundant .htaccess lines, as they are no longer required and may hinder some functionality.)
  • You can now sort the Manage GoCodes table. People have wanted the ability to reorder the Manage table by date added, key, or the number of hits. Now you can!
  • Replace the /go/ in redirect URLs with your own “virtual subdirectory.” Want to have /affiliate/ instead? Just pop over to the new Settings -> GoCodes page and change it.
  • Automatically nofollow redirects. Some users have been writing-in, asking for the ability to “nofollow GoCodes.” If you check the “Nofollow” box on the settings page, GoCodes will start sending a “noindex, nofollow” header statement to search spiders trying to index redirects.
  • An assortment of minor tweaks and fixes.

Also note that GoCodes now uses the more SEO-friendly 301 redirects instead of 302s, and has since the previous release.

To update, either use WordPress’s automatic plugin updater, or download the latest version manually from WordPress.org.

If you find any bugs, or have a feature request, feel free to leave a comment.

  • Kaprice

    I'm getting a problem that was mentioned in the comments for version 1.0. I've got 1.3 installed. I set up a go redirect. Clicking on it (or for that matter, typing the url in browser) simply redirects to the post.

    One interesting note: It does not appear that .htaccess was updated when I installed and activeated GoCodes. I looked inside and this is all it says:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    I found this file in the root folder of my domain, which is where I installed WP. I could not find any other instance of .htaccess.


  • Kaprice

    BTW, I tried turning off permalinks and went back to the default. Then, it no longer redirects to the post. It redirects to a 404 page.

    • http://intensedebate.com/people/redwall_hp redwall_hp

      You want permalinks on, and the way they were before probably. If you're using GoCodes 1.3.0 you should not need anything in your .htaccess other than what you posted in your last comment.

      Are you running any caching plugins?

  • Kaprice

    Not running any caching (though I was hoping to run hyper cache, soon). I've got permalinks back on, but the redirect is still going to a 404. Here's my go URL:


    I've got it set to redirect to http://www.zmagic.com

  • http://intensedebate.com/people/redwall_hp redwall_hp

    What version of WordPress are you running?

    • Kaprice


  • Tom

    I was unable to get my original installation of GoCodes on a WP 2.7 site that uses WP Super Cache to redirect properly even with the .htaccess mods (got 404 Error). I replaced the old version of GoCodes with a clean install of 1.3.0. After activation of the plugin, I do not find the Settings->GoCodes page mentioned above, only Tools->GoCodes. My redirects still give me a 404 Error. (I did notice my redirect links carried over from the old version so it wasn't an entirely clean install.) Any suggestions?

  • http://intensedebate.com/people/redwall_hp redwall_hp

    Try deactivating and reactivating the plugin.

  • Tom

    Sadly, I still get a 404 after deactivating and reactivating. Appreciate your help. It's a useful plugin if I can get it working. Still no GoCodes menu in the Settings. Any other possibilities?

    • Kaprice

      Same here. 404 after deactivateing and activating. WP 2.7. GC 1.3.0.

      • http://intensedebate.com/people/redwall_hp redwall_hp

        Do you know what sort of server you're running on? Is it Linux/UNIX/Mac (Apache) or Windows (IIS)? If you don't, can you post the link to your webhost so I can take a look?

      • http://intensedebate.com/people/redwall_hp redwall_hp

        I just committed GoCodes 1.3.1 to the repository. Try updating to the new version and see if it fixes your 404.

  • http://www.michaelaulia.com/blogs Michael Aulia

    I've been getting a "This webpage has a redirect loop." error on my browsers when I upgraded the plug-in today.

    I've already removed the GoCodes code on my htaccess. I'm using WP-SuperCache if it's gonna help identifying the problem (and I've already added index.php as the rejected/exception cache url)

  • Kaprice

    1.3.2 works for me! Thanks so much. Very nice tool

  • http://www.mywebhostingreviews.co.uk Mike

    Sicne upgrading everythign in wp-admin and domain.com/page/2 now redirect directly to the root of my page. The plugin itself works fine and still redirects and doesn't seem to effect any individual pages.

    If I FTP in and delete the gocodes directory, forcing wordpress to deactivate it (as I can't login to deactivate) everything goes back to normal.

    Any ideas? :-S


    • http://intensedebate.com/people/redwall_hp redwall_hp

      I'm currently looking into it. Some people have been having problems with the 1.3.x line, and I'm working on finding solutions.

      • Mike


        I was wondering if you had made any progress with a solution yet? Or could post an older version so that those of us affected can roll back until this is fixed?

    • http://www.jenkaufman.com/ Cory H

      Same problem as Mike is experiencing… Installed the plugin automatically & then every URL redirected to the root. Could not access admin, posts, etc. until I deleted the plugin folder.

      Commented out the fuction for "redirection" and now I can at least edit the plugin, settings and have working URLs. BUT, now the redirect won't work, until the issue is resolved.

      Using default permalinks (aka "None"), but that is cuz GoDaddy won't let me utilize w/ current plan :(

  • Kevin Fegan


    I just love GoCodes … Thanks.

    I am trying to setup GoCodes on a new blog

    I am using:
    WP 2.7.1
    GoCodes: 1.3.2

    My WordPress blog is located in a /blog/ folder from the
    root of the domain, like:

    So, a typical GoCodes redirect link looks like:

    Permalinks is set to /%postname%/ and WordPress
    has created the proper section/lines in the .htaccess file
    that is located in the /blog/ folder.

    There is NOT an .htaccess file in the root like:

    This all works fine, so far…

    The thing is, I want to remove the /blog/ from the GoCodes URL.

    I want to create redirect links for use inside, and OUTSIDE of
    the blog, and I don't want /blog/ appearing in those links.

    Also, this would make the redirect URL a little shorter.

    Can this be done either by configuring a .htaccess file in the
    root, or by some other configuration of GoCodes ?

    Thanks a lot.


    • http://intensedebate.com/people/redwall_hp redwall_hp

      You want want to have an .htaccess file in the root, and have it redirect any urls in the form of yourdomain.com/go/whatever to yourdomaim.com/blog/go/whatever, where GoCodes will take over. Or you could point it to /blog/index.php?gocode=whatever.

      Try this:

      RewriteEngine On
      RewriteRule ^go/([a-zA-Z0-9._-]*)/?$ /blog/index.php?gocode=$1 [L]

  • http://counterhp.com gadis

    I've been download and upload at /plugin/directory because change name gocodes folder to directory and I add htaccess with your tutorial but I have problem error like can load gocode php. Please help me, what must I do ?

  • Kevin Fegan

    Hi Matt,

    I tried this and it worked perfectly!

    Thanks for the super quick reply.


  • http://www.jenkaufman.com/?page_id=92 Cory H

    Nm… I think I just figured it out, that I need permalinks in order for the /go/ path to work.

    What would I modify in the coding to get this plugin to work, since permalinks are not an option?

  • http://intensedebate.com/people/redwall_hp redwall_hp

    Older versions an be downloaded here: http://wordpress.org/extend/plugins/gocodes/downl

    Just use version 1.3.0 and pay attention to your plugin updates. If a 1.3.3 comes out, I will *hopefully* have managed to address the issue in a manner that will work for everybody.

  • Devin

    Hello Matt,

    Found some good information related to 301 redirects, may be it can help in making the gocodes plugin better. http://www.ppchero.com/destina.....nary-tale/

    • http://intensedebate.com/people/redwall_hp redwall_hp

      That's…interesting. I've never noticed GoCodes doing that before. I'll have to look into that sometime!

  • Decin

    Hallo Matt,

    On http://validator.w3.org/checklink if you check any of the pages (where you have your Affiliate links) it will show you that your affiliate links are redirected as per 302 redirects and NOT 301 !!! Why? I don’t know. May be YOU know better about that.

    • http://intensedebate.com/people/redwall_hp redwall_hp

      Strange. I just checked with a quick cURL command, and you're right. It's supposed to be a 301. I'll have to have a look at that…

    • http://intensedebate.com/people/redwall_hp redwall_hp

      Strange. I simply can't make it send a 301. It works on another WordPress installation, but not on WSC.

  • Devin

    But I think this is not a very big issue (from SEO point) as long as the redirected links are blocked through robots.txt file. That means the search engines will not try to index these redirected pages (out of MSN Bot, bcause MSN still don’t follow these standards implimented by other Search engines like nofollow in robots.txt).

    • http://intensedebate.com/people/redwall_hp redwall_hp

      Typical of Microsoft, not following standards. :)

  • Brett

    Hi there,

    I love the idea of this plugin but I'm doing something stoopid!

    I've installed, activated and setup some redirects.

    The first link in the list works i.e it redirects to where it should. Any other link redirects to the home page of my blog.

    Any ideas?


    • http://intensedebate.com/people/redwall_hp redwall_hp

      Can you post a screenshot of the GoCodes Management page?

  • Wai Wai


    My wordpress mu is located in the /blog/ folder.
    My blog URL would be http://www.example.com/blog/smith.
    I want to remove the folder name "blog" from URL.
    I installed GoCodes plugin and I added this line:
    RewriteRule ^go/([a-zA-Z0-9._-]*)/?$ /blog/index.php?gocode=$1 [L] into .htaccess file.
    But there is nothing difference. How should I do?

    Thanks in advance.

    • http://intensedebate.com/people/redwall_hp redwall_hp

      You should add that line (and a line to turn the ReWrite Engine on) in an .htaccess file in your web root, not in the .htaccess in your /blog/ subdirectory.

  • Rachieko


    I installed gocodes in my blog few weeks ago
    and it worked perfectly.
    Today I instal a clickbank widget plugin
    but receive an error message “Header error etc”

    Now, I get an error 404 page when I want to
    add or edit a redirect on Tools|GoCodes. ;(

    “Nothing found for Wp-admin Tools Php?page=gocodes Gocodes Php&editgcconf=yes”
    “Nothing found for Wp-admin Tools Php?page=gocodes Gocodes Php&savegc=yes”

    Have tried to deactivate and reactivate, but still
    didn’t work.

    How can I get my gocodes works?
    It is really a great plugin.
    Please help.

    • http://www.webmaster-source.com Matt

      Could you post a link to the Clickbank plugin? There may be a conflict.

      Actually, try deactivating the Clickbank plugin temporarily so you can see if GoCodes works with it off.

  • http://www.lookingafteryourhome.co.uk/category/uncategorized/ john

    Hi, Neat post. There is an issue together with your website in internet explorer, could check this? IE still is the market leader and a big component to other folks will leave out your fantastic writing because of this problem.

  • Sindre

    Need URGENT help.

    I use the latest version, 1.3.4. Many years ago, I saw a guide somewhere on how to change the “go”-part of the url to whatever else i wished. I think I edited the htaccess file for this. It was quite simple, but now this code is gone, and all my affiliate links in all my blog posts and newsletter issues does not work. The reason the code disappeared was because my server got attacked by some malware/virus, and in the process the htaccess file was replaced.

    So can you please tell me how I can get the links to work again/what the line of code is for changing the “go” back again?

  • Sindre

    Well, now I’m embarrassed. You’d think I’ve been smoking something. Obviously you can do this from the settings now. I found out. Couldn’t remember that. Don’t know how it got changed back to “go” either. Anyway, changed it back again, and it’s working now. Feel free to delete these 2 comments. :P