Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [yogi] Renaming gforum.cgi

Quote Reply
Re: [yogi] Renaming gforum.cgi In reply to
In Reply To:
Suppose I wanted to rename gforum.cgi to index.cgi. Can I just do that and change all the links in the templates?

In other words, is there something in the code that prevents me from renaming gforum.cgi to something else?

Nope, it should work fine. In addition to the user template, you will want also want to change "home_nav.html" in the admin templates - It contains the "User Login" link at the top of the admin screen. If you don't use that link, don't worry about it. Coming in 1.0.0 (already in the admin panel here) is a stats page, which will contain some gforum.cgi links. Obviously, you don't need to worry about that now.

In Reply To:
Another solution (just came to my mind): include the following in the apache config file

Code:
<Directory "/path/to/forum">
DirectoryIndex gforum.cgi
</Directory>
Or some rewrite rule...

gossamer-threads.com uses a rewrite rule to take you to "http://www.gossamer-threads.com/perl/gforum/gforum.cgi" when you go to .../perl/gforum. The problem with using gforum.cgi as a directory index is that if someone accessed:

http://server/gforum it would work, but then the next link, "gforum.cgi?forum=13", for example, would attempt to access http://server/gforum.cgi?forum=13. It's because the browser doesn't have a slash, so it assumes you are one directory up.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Renaming gforum.cgi yogi 8538 Nov 8, 2001, 12:40 AM
Thread Re: [yogi] Renaming gforum.cgi
Paul 8349 Nov 8, 2001, 3:23 AM
Thread Re: [RedRum] Renaming gforum.cgi
yogi 8360 Nov 8, 2001, 3:35 AM
Post Re: [yogi] Renaming gforum.cgi
Paul 8340 Nov 8, 2001, 3:39 AM
Thread Re: [yogi] Renaming gforum.cgi
Jagerman 8296 Nov 10, 2001, 6:37 PM
Thread Re: [jagerman] Renaming gforum.cgi
ArmyAirForces 8032 Jan 1, 2002, 10:19 AM
Thread Re: [heavybombers] Renaming gforum.cgi
diversity 7935 Mar 6, 2002, 1:46 AM
Thread Re: [diversity] Renaming gforum.cgi
Wil 7858 Mar 6, 2002, 1:47 AM
Thread Re: [Wil] Renaming gforum.cgi
diversity 7872 Mar 6, 2002, 1:51 AM
Thread Re: [diversity] Renaming gforum.cgi
Wil 7917 Mar 6, 2002, 1:52 AM
Thread Re: [Wil] Renaming gforum.cgi
Paul 7891 Mar 6, 2002, 2:29 AM
Thread Re: [RedRum] Renaming gforum.cgi
Wil 7882 Mar 6, 2002, 2:31 AM
Post Re: [Wil] Renaming gforum.cgi
Paul 7893 Mar 6, 2002, 2:41 AM
Thread Re: [RedRum] Renaming gforum.cgi
QooQ 7870 Mar 6, 2002, 6:11 AM
Thread Re: [QooQ] Renaming gforum.cgi
jdgamble 7244 Feb 14, 2005, 1:33 AM
Post Re: [jdgamble] Renaming gforum.cgi
Jagerman 7228 Feb 15, 2005, 11:35 AM