By latte on
I run www.socialnetlookup.com(still a work in progress). It is up and running and I just noticed that when I log in to the site via http://www.socialnetlookup.com it doesn't keep the session if I go to http://socialnetlookup.com.
It's kinda odd so I was wondering if anyone here has had that happen??
Is there a way to forward all to www.socialnetlookup.com in cPanel?
Thank you,
Latte/
Comments
Yes that's normal (though of
Yes that's normal (though of course undesirable) on Drupal or any type of site/CMS. As you've noticed it can cause trouble for logins, though it can also be a detrimental issue for search engine optimization as well. The way to fix it is to edit your .htaccess file in the root of your Drupal site. Find the spot where it says "To redirect all users to access the site WITH the 'www.' prefix" and uncomment this part (remove the # signs):
Then change example.com to your domain name. Save the file and the problem should now be solved. Going to example.com will automatically forward to www.example.com every time.
Awesome! thank you very much!
Awesome! thank you very much!