Previous Thread
Next Thread
Print Thread
Rate Thread
#73300 06/26/2001 1:29 PM
Joined: May 2001
Posts: 175
Member
Member
Offline
Joined: May 2001
Posts: 175
don't where to put this topic, so i posted here...

Imagine you have a domain, www.domain.net , and when you type on your browser www.domain.net it will look for the file specified on the apache httpd.conf:

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#

DirectoryIndex index.html index.htm index.shtml index.php index.phtml index.cgi index.asp



The question is.. how can i put on my account, some option to change the default file index.html or whatever to use by DEFAULT the cgidir/ultimatebb.cgi file?

At the moment i have this on the index.html file:


But it takes a little time to redirect to the ultimatebbb.cgi

Hope i could explain myself well wink
Any help is appreciated
Tks

Sponsored Links
#73301 06/26/2001 2:33 PM
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
Put this in a file named .htaccess and hope that your host has mod_rewite turned on.


RewriteEngine ON
RewriteRule ^$ /cgi-bin/ultimatebb.cgi [R]


Adjust the path to ultimatebb as necesary.

[ June 26, 2001 02:34 PM: Message edited by: navaho ]


Picture perfect penmanship here.
#73302 06/26/2001 3:08 PM
Joined: May 2001
Posts: 175
Member
Member
Offline
Joined: May 2001
Posts: 175
well... tryed that as you sayd.. doesn't work.

.htaccess file:

RewriteEngine ON
RewriteRule ^$ /cgi/ultimatebb.cgi [R]

error 500 internal server error frown


I tryed to use also
DirectoryIndex /cgi/ultimatebb.cgi
But it doesn't work also... internal server error...

any suggestion?

Thanks for help

#73303 06/26/2001 3:11 PM
Joined: Nov 2000
Posts: 168
Member
Member
Offline
Joined: Nov 2000
Posts: 168
In a .htaccess

Redirect / http://yourdomain.net/cgi-bin/ultimatebb.cgi

You might try that...

#73304 06/26/2001 3:13 PM
Joined: Nov 2000
Posts: 168
Member
Member
Offline
Joined: Nov 2000
Posts: 168
And also what server are you using this on? Cobalt, RH, FreeBSD....

Sponsored Links
#73305 06/26/2001 3:22 PM
Joined: May 2001
Posts: 175
Member
Member
Offline
Joined: May 2001
Posts: 175
The Prohacker: that you suggested doesn't work... it makes some kind of a lot of requests.. look at access_log:

[26/Jun/2001:21:23:39 +0100] "GET
/cgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cgicgi/ultimatebb.cg i ... and so on...

Server is running Linux Slackware

tks

#73306 06/26/2001 3:27 PM
Joined: Nov 2000
Posts: 168
Member
Member
Offline
Joined: Nov 2000
Posts: 168
Hmmmm..

Do you have AllowOveride All in your httpd.conf?

#73307 06/26/2001 3:34 PM
Joined: May 2001
Posts: 175
Member
Member
Offline
Joined: May 2001
Posts: 175
well... i'm just a user, i'm not admin of the server, anyway i looked on httpd.conf, no such line matching AllowOveride All

What can i do?
I use the .htaccess on other directory's of the server with other funcions and it works...

#73308 06/27/2001 3:08 PM
Joined: May 2001
Posts: 175
Member
Member
Offline
Joined: May 2001
Posts: 175
well... after a long search on some rtfm's of apache, i solved it out!

in .htaccess just put:

Options +ExecCGI
DirectoryIndex /cgi/ultimatebb.cgi


it will run without any problem smile


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)