Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

htaccess problems

Quote Reply
htaccess problems
Originally I hoped to use the SE friendly version, but after a lot of struggle I gave up.
Now I'm focusing on making the script work on /forum/ - and I have with this little .htaccess code:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /forum/
#RewriteRule ^\.htaccess$ - [F]
RewriteOptions inherit
RewriteRule ^(.*)forum/?$ gforum.cgi?t=default [L]

My problem starts when ppl enter my site using domain.com/forum instead of domain.com/forum/
when the / is missing on the end of forum all the threads get transfered to http://www.dicereviews.com/...gi?forum=8;t=default with the /forum/ missing. When people enter the site using domain.com/forum/ everything works dandy.
Any suggestion would be HIGHLY appreciated.
Quote Reply
Re: [princet] htaccess problems In reply to
Hi,

Have you tried something like this?

Code:
RewriteRule ^(.*)forum/$ gforum.cgi?t=default [L]
RewriteRule ^(.*)forum$ gforum.cgi?t=default [L]

..although the following (what you had) should work fine:

Code:
RewriteRule ^(.*)forum/?$ gforum.cgi?t=default [L]

Have you tried changing [L] to [R], so you can see where its trying to redirect too? (and more to the point, if the RewriteRule is even being picked up without the / )

Also, I'm not sure you need these (at least I've never used them on any site I've setup rewrite rules for);

Code:
RewriteBase /forum/
RewriteOptions inherit

It should be fine with just:

Code:
RewriteEngine On
RewriteRule ^(.*)forum/?$ gforum.cgi?t=default [L]

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] htaccess problems In reply to
Tried all your suggestions (thanks), but no luck.
it works perfectly fine with /forum/ but not with /forum
I tried replacing the [L] with [R] and it seem to be working correctly.
you can watch it here http://www.dicereviews.com/forum

So until I get it sorted out, it's a better option to use the [R] even though it's not really
how I want it to work.

Thanks
princet
Quote Reply
Re: [princet] htaccess problems In reply to
Hi,

Mmm.. so it works ok with [R], but not [L] ? Have you tried:

[L,R] (worth a shot :))

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] htaccess problems In reply to
Not a bad suggestion, but that didn't do any difference at all.
I'm just going to let it rest for a few days, and maybe get some perspective on the situation.
As of know... I don't want to see another .htaccess file again as long as I live ;)