Forum Moderators: rogerd

Message Too Old, No Replies

Weird canonical issue with forums

after upgrade

         

Lyndsay

2:25 pm on Apr 21, 2006 (gmt 0)

10+ Year Member



So my phpBB forums were hacked. Once I got them back under control, I noticed that the forums were version 2.0.8. (Someone else had taken over the site/forums for the past year, I just got them back).

So I updated to 2.0.19 (the newest my host offers). But now www.domain.com/Forum/ doesn't really seem to work - it has the proper style, but I can't log in (after logging in, it goes back to the forum listing saying "log in").

If I go to domain.com/Forum/, it has the default style and I am able to log in no problem.

So I'm sure I need to do a 301 from non-www to www, but I'm an ASP girl... never done it in apache before.

Any tips are greatly appreciated!

milanmk

5:58 pm on Apr 21, 2006 (gmt 0)

10+ Year Member



RewriteEngine On
RewriteCond %{HTTP_HOST}!^www\.domain\.com [NC]
RewriteRule ^(.*) [domain.com...] [L,R=301]

Note: There is a space between } and ! on line #2.

I hope this helps.

Milan