Wednesday, 4 June 2008

GoCodes Redirection Plugin For Wordpress

Mungkin sudah pernah dengar tool / website yang bisa memperpendek url sehingga kita gak repot-repot menghapal url yang panjang ? Ya itu TinyURL

Nah plugin denga fungsi yang sama sudah ada juga buat wordpress. Malah kalo yang ini memperbolehkan kita mengatur sendiri URL redirectnya. Namanya GoCodes

Fungsi lain dari GoCodes, selain untuk memperpendek URL-URL yang panjang, adalah untuk ‘menyembunyikan’ URL aslinya. Bagi Anda yang gemar promosi, plugin ini jelas sangat berguna untuk menyamarkan link affiliasi Anda.

Installation

1. Download the GoCodes plugin
2. FTP the entire "gocodes" directory to your plugins folder (/wp-content/plugins/).
3. Activate the plugin on the "Plugins" tab of the administartion panel.
4. Place the following code in your .htaccess file, above the line that says "# BEGIN WordPress":
RewriteEngine On
RewriteRule ^go/([A-Za-z0-9]+)/?$ /index.php?gocode=$1 [L,R]
This example assumes your blog is located at the root of your domain. If your blog is located at yourdomain.com/blog/, then you should change "/index.php" to "/blog/index.php".
5. Add some GoCodes via the menu added to the Manage tab.

To manage your redirects, open your Wordpress admin, and go to the Manage -> GoCodes menu. From there you can remove redirects by clicking on the "Delete" button next to their entries, and you can add new ones using the form on the page. The "Key" field is where you enter the redirection string (e.g. "orange" in yourdomain.com/go/orange/). The URL field is where you enter the URL that users will be redirected to ("http://" is required). Note that the Key can only contain alphanumeric characters.
Load disqus comments

0 comments