GoTryTHIS 2 Pre-Launch News

GoTryTHIS and WordPress do work together!

For those of you who have Wordpress, Joomla or other systems that use mod_redirect in your home folder, it has been said that GoTryTHIS doesn’t work.

There are various work-around’s listed here.

As well, there is a simple fix for Wordpress. Similar fixes might work for other systems as well.

WORDPRESS FIX:

In your templates folder for Wordpress, there is a file called 404.php that displays when a page isn’t found.

We’re going to replace that file with one that redirects to GoTryTHIS.

Copy the code below, and then load up the admin side of your Wordpress blog and go to “Presentation” and then the “Theme Editor” sub-menu. Then select 404 Template on the right hand side.

First, copy all the text there from 404.php into a text file on your desktop and save that as a backup in case something goes wrong.

Then replace all the content of 404.php in Wordpress with the following code, and edit the variable $gtt_path with the correct domain name and path to where you installed GoTryTHIS on that web site.

Then save the file, and test your blog and test a GoTryTHIS link.


<?php
// Set the following line ($gtt_path) to the location you installed GoTryTHIS into
$gtt_path = 'http://www.yourdomain.com/gotrythis';

// Optionally add this for search engines
header("HTTP/1.1 301 Moved Permanently");

// Do not edit past this point
header( 'Location: ' . $gtt_path . '/gotrythis.php?id=' . urlencode( substr($_SERVER['REQUEST_URI'],1) ) );
exit();
?>

Leave a Reply