Topic: Leaving out www whilst viewing forum root shows me as logged out

If I view the forum index page without the www. at the start whilst logged in, punbb says I'm logged out.

But If I add the www at the front, it shows me correctly as logged in.

What's worse is that even if I manually type www.domain.com/punbb the forum automatically redirects to the same url but it removes the www.  If I manually type the above url and include the trailing slash, it's fine. But without the slash it deletes the www and shows me as logged out.

Re: Leaving out www whilst viewing forum root shows me as logged out

It shows you as logged out because the cookie set by PunBB is domain-specific.

As for the WWW problem, you should decide whether to use the WWW or not and install PunBB from the domain you want to use it (WWW and non-WWW URLs are considered different domains by DNS [i think]).

Re: Leaving out www whilst viewing forum root shows me as logged out

Thanks for that. But how about making PUNBB redirect http://domain.com/forum to http://www.domain.com/forum

That would solve it?
Or is that something punbb can't do and has to be done by website admin?
If so how is that achieved within CPANEL?

Re: Leaving out www whilst viewing forum root shows me as logged out

Add a CNAME record:

Name: domain.com.
Real name: www.domain.com.

This can be done from your registrar's site (GoDaddy, etc.).

Re: Leaving out www whilst viewing forum root shows me as logged out

Usually redirect can be set via admin tools. But you can set a redirect editing .htaccess. For example, if you don't like www, you can write there the following lines:

RewriteCond %{HTTP_HOST} ^www\.site\.com$ [NC]
RewriteRule ^(.*)$ http://site.com/$1 [R=301,L]

Re: Leaving out www whilst viewing forum root shows me as logged out

Doesn't that redirect to a non-WWW page?