XF 1.3 Force non-www redirection to www in subdomain installation

mcmedal001

Member
Hello,

I have xenforo installed on a subdomain on my website (www.ngscholars.com/comm/). I just discovered that the www version and non-www version of the site are opening separately.

From SEO point of view, I may not have ay issues because I have claimed both www and non-www version in Google Webmaster tools and set my preferred domain as the www version.

The issue I currently have now is this:

If a user logs in to the community with the www appended to the URL and later clicks on a link on the site without www, they get logged out. I have searched this forum and tried out every recommendations (editing .htaccess) made by Jake and others to no avail.

I'm here to seek help from members and support staff who have done this before.

NB: My forum is installed in a subdomain at www.ngscholars.com/comm

Thank you
 
I understand clearly now. I will inform my server manager and get back to you here. To be double sure, which redirection code should I give to him, considering that I have it installed in a sub-domain. Thank you
For nginx... having it in a subdirectory is usually handled by code on down in the vhost definition. This is just rewriting any inbound www requests to a non-www location.
 
Top Bottom