GoCodes 1.3.0 Released
March 17th, 2009 by MattVersion 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.
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]
</IfModule>
# 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.
Suggestions?
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.
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?
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:
http://magictreasuremap.com/go/test/
I've got it set to redirect to http://www.zmagic.com
What version of WordPress are you running?
2.7
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?
Try deactivating and reactivating the plugin.
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?
Same here. 404 after deactivateing and activating. WP 2.7. GC 1.3.0.
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?
I just committed GoCodes 1.3.1 to the repository. Try updating to the new version and see if it fixes your 404.
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)
1.3.2 works for me! Thanks so much. Very nice tool
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
Thanks,
Mike
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.
Hi,
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?
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
Hi,
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:
hxxp://example.com/blog/
So, a typical GoCodes redirect link looks like:
hxxp://example.com/blog/go/keyword-or-phrase/
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:
hxxp://example.com/.htaccess
This all works fine, so far…
The thing is, I want to remove the /blog/ from the GoCodes URL.
hxxp://example.com/go/keyword-or-phrase/
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.
Kevin
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]
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 ?
thanks
Hi Matt,
I tried this and it worked perfectly!
Thanks for the super quick reply.
Kevin
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?
Older versions an be downloaded here: http://wordpress.org/extend/pl.....es/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.
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/
That's…interesting. I've never noticed GoCodes doing that before. I'll have to look into that sometime!
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.
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…
Strange. I simply can't make it send a 301. It works on another WordPress installation, but not on WSC.
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).
Typical of Microsoft, not following standards.
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?
Cheers
Brett
Can you post a screenshot of the GoCodes Management page?
Hi,
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.
Wai
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.