PDA

View Full Version : CJPro 1.10


Kilgor
07-25-2001, 11:30 AM
I know most of you support UCJ and all, and once I turn a profit from my first couple CJ sites, I will buy a script, maybe UCJ.. but anyway, here is my question regarding the beta 1.10 version of CJPro:

This new BETA version has the ability to track hits to your root url instead of that long url it gives each user.. it doesn't come with ANY documentation on how to get it working though, because its untested. However, the script says you can use it if you want.

Does anyone know how to correctly set the script up to do this? Here's what I'm thinking:

First, I uploaded the 3 files the installation says only to upload if you're using this root url thing.. I think it uses the index.cgi file somehow. I edited this file with my full path to the cgi-bin config file for the script, which was at first set with the full path info for americanhoes.com (his CJ site).. and then I uploaded that new one to my cgi-bin dir, and typed in the url in my browser. All it did was redirect me to the mainpage.

I assume this is how it "tracks" hits.. the index.cgi adds the referring hit to the database, and then redirects to your real index.html file instantly.. thus people can send hits to your domain and they'll be counted. So, I'm thinking that I would set .htaccess to automatically point to this index.cgi file instead of index.html.. but since the beta script doesn't really support the root url thing, it doesn't tell you how to set it up. Just says leave it for now, upgrade later.. heh.

Anyway, any help would be appreciated. I really want to be able to track hits to my root url instead of that long url, so when I do switch to a better pay script, tons of trades wouldn't have to change my link url, it'd already be pointing to my domain..

Zane
07-25-2001, 01:34 PM
If you can't run .cgi from your html directory then using .htaccess like you said will work fine. You also need to set up cjproconfigure.cgi to recognize the "root url" feature if it isn't already.

andy2000
07-25-2001, 03:20 PM
yes if you put this in your htaccess you
can sent to http://www.yoursite.com

DirectoryIndex index.cgi

Kilgor
07-25-2001, 06:16 PM
Yeah, I turned the root feature on in config.

I tried to run the index.cgi from my root html dir and got an error.. only works when run it from cgi-bin. Can I still use .htaccess to point to a file in cgi-bin dir?.. I've never tried that before..

andy2000
07-25-2001, 06:24 PM
I guess you can it just means webmasters will
have to link to your cgi-bin not your root
maybe should ask your hoast if they can enable cgi scripts outside your cgi-bin

Kilgor
07-25-2001, 06:43 PM
WOOT! I got it working.

I entered this into my .htaccess file:

DirectoryIndex /cgi-bin/index.cgi

(installed the script just into cgi-bin, not cjpro)

First I linked it to an .html file to make sure .htaccess was working.. it was, so I switched it to the /cgi-bin/index.cgi. Then I made a test account with my other domain site, made a link on that site and clicked on it.. forced an update the there it was http://bbs.adultwebmasterinfo.com/ubb/wink.gif 1 in.

It does work, you can set .htaccess to link to your cgi-bin and still have other site point to your root domain. Seems to work fine for me..

If anyone else uses CJPro 1.10 and wants to set up root domain, ICQ me at 1021571. I figured it out, heh