Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 06-20-2004 21:50:57

bossboyer2
Member
Registered: 06-20-2004
Posts: 3

Index Help

I currently have my domain on an apache server and am using an index.html with
<META HTTP-EQUIV="refresh" CONTENT="0; URL=http://www.mydoamin.com/cgi-bin/ccp5/cp-app.pl">

This works, but gives a few seconds on load time that isnt needed. Any way to have it run direct to the perl script??

Thanks

Offline

 

#2 06-20-2004 22:05:33

nav
Banned
Registered: 04-07-2004
Posts: 666

Re: Index Help

Yes, I have done this on my site. I used a MOD to point out ' directly ' to the destination by making a few modifications in the sub routines. This way, the layout doesn't have to re-load each times the <META CONTENT has to follow a link.

As for the few seconds, the source would come from CGI.pm file. However, like I said, there's a good way to avoid it. Althought, it would be too big to post on the forum.


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#3 06-20-2004 22:20:22

TheThinker
Member
From: Salt Lake City, Utah
Registered: 06-16-2004
Posts: 535
Website

Re: Index Help

bossboyer2,06/20/2004 09:50:57 PM wrote:

I currently have my domain on an apache server and am using an index.html with
<META HTTP-EQUIV="refresh" CONTENT="0; URL=http://www.mydoamin.com/cgi-bin/ccp5/cp-app.pl">

This works, but gives a few seconds on load time that isn't needed. Any way to have it run direct to the Perl script??

Just make your CCP store script the default page for your web server; should be a trivial one-line change. Each web server I'm familiar with has a configuration option specifying the default page to display when an end-user goes to your site without specifying a specific file to retrieve. 

Are you using Apache?  IIS?

For Apache 2.0, edit the config file [apache root]/config/httpd.config

Look for the line (this may have been changed) around line number 321:

---> DirectoryIndex index.html index.html.var

And you can change it to the following:

---> DirectoryIndex cgi-bin/ccp51/cp-app.pl

The users that enter your web site by typing wwwmysite.com will automatically be redirected to your CCP site.  Note, in the above, change the "cgi-bin/ccp51/cp-app.pl" to the directory where you have your store main script, of course.

Hope this helps.


Regards,
Eric

Offline

 

Board footer