AnalogX
CGIRDIR
CGIRDIR
CGIRDIR
CGIRDIR

CGIRDIR

version 1.00
version 1.00
version 1.00
version 1.00

version 1.00

Documentation

Documentation


You may have noticed that many larger websites don't directly link to other sites, but instead go through a redirection script. The reason for this is so they can accurately track how much traffic they send to other places as well as to get a better grasp of what links users of the site found interesting.

AnalogX CGI Redirect is just like those CGI redirection scripts used by the big boys, it supports both explicit URL's as well as literals that it translates internally (great when you list links that may change on a somewhat regular basis).

Configuration is very simple, just put it in your /cgi-bin directory, create a subdirectory called:

    rdirdata

Inside the /rdirdata subdirectory there is one file, 'config.txt' which unsurprisingly contains all of the translation redirections. These are very easy to specify, you would simply add the following line to the config file:

    analogx=http://www.analogx.com/

and when CGI Redirect gets the request for 'analogx', it automatically replaces it with the website URL - it's that simple. There isn't a limit to the number of translations allowed, and any character can be used in the redirection name EXCEPT the period (.).

If you create a dir called 'logs' inside /rdirdata, then it will log all of the redirections performed by users, which can be handy if you don't have access to more detailed web logs.

Adding the redirection script to a webpage is super simple; here's an example of how you would have done it before, and how you would do it now:


    Before:

        <A href="http://www.analogx.com/" target="_blank">AnalogX</A>

    After:

        <A href="/cgi-bin/cgirdir.exe?AnalogX" target="_blank">AnalogX</A>

            or

        <A href="/cgi-bin/cgirdir.exe?http://www.analogx.com/" target="_blank">AnalogX</A>

 
that's it!

If you need to check the version number, you can get it by typing the following at the command prompt:

    cgiredir /?

it will display the version, subversion, and release status.

Although I don't know if I need to state this or not, I'll do it anyway, this will ONLY work on a server running some flavor of Windows, and should work with any Web Server (whether it be AnalogX SimpleServer, IIS, or Apache).