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.
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
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.
Offline
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.
Offline