My site can be accessed with or without www prefix, but it doesn't share cookies between the two so you can be logged into one and not the other. Which can be annoying when both formats are used in links. How do I fix this within Xenforo?
How can I redirect all traffic to the www or non-www version of my site?
If you are on an Apache server, this can be achieved by editing the .htaccess file. Refer to the discussion thread in the forum for more information.
Note that any custom rewrite rules must come before the XenForo rewrite rules.
But is it better to do it in .htaccess? I want to force a cookie reset at the same time, but was actually hoping to be able to use both www and non-www - but perhaps that cannot work.