XF 1.5 .htaccess redirect to force www URL

#1
We recently added the following code to our forum .htaccess file to force URLs to include "www" before the site name:

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

This seems to work without any problems. However, since making the change earlier today, we have seen wider than usual fluctuations in traffic and some periods with lower than normal posting activity.

Is there any obvious problem with the code or any other issue we should be aware of?
 

Brogan

XenForo moderator
Staff member
#2
Assuming the rewrite works as expected, for all distinct URLs, I can't see why it would have any effect on visitors or posting.
 
Top