Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [agaffin] redirecting index.htm to gforum

Quote Reply
Re: [agaffin] redirecting index.htm to gforum In reply to
Hi:

I think the CLEANEST way is to use mod_rewrite. Obviously, you need to do the above, so the .cgi file is treated as a valid homepage...

then I added this into .httpd.conf:

RewriteEngine on

RewriteRule ^/?$ /forum/ [PT]

Obviously, your paths may bge different.

The beauty of this is that you can "promote" your forum at the base url (in my case, http://forum.bcdb.com/) and that "invisibly" gets rewritten to /my/base/directory/forum/... and then, since you have set up gtforum.cgi as an index page, that is what get's called (/my/base/directory/forum/gtforum.cgi) but the user thinks it is http://forum.bcdb.com/!

Beautiful!

Since I can access and edit httpd.conf, I have not explored .htacces versions of this rewrite. But I THINK that is you have nod_rewrite enabled on your server, you can do sopmething similar in .htaccess.

Good Luck!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Subject Author Views Date
Thread redirecting index.htm to gforum blackjack 3607 Mar 14, 2003, 1:55 AM
Thread Re: [blackjack] redirecting index.htm to gforum
Paul 3427 Mar 14, 2003, 2:27 AM
Thread Re: [Paul] redirecting index.htm to gforum
blackjack 3431 Mar 14, 2003, 2:44 AM
Thread Re: [blackjack] redirecting index.htm to gforum
yogi 3423 Mar 14, 2003, 2:57 AM
Post Re: [yogi] redirecting index.htm to gforum
blackjack 3465 Mar 14, 2003, 3:13 AM
Thread Re: [yogi] redirecting index.htm to gforum
agaffin 3411 Mar 14, 2003, 6:28 AM
Post Re: [agaffin] redirecting index.htm to gforum
carfac 3401 Mar 16, 2003, 9:08 AM