Ok, even though I just posted help for this on another forum I found my own answer.
I don't know if anybody has noticed the recent battle between "http://waloosh.com" and "http://
www.waloosh.com".
You'd log in using the www prefix just to click on a link that took you to a page without the www prefix when you notice that you're not logged in anymore... I had many issues with this and went through a LOT of troubleshooting for this, but I finally found the answer by doing some hard research. (First link of my Google search, hehe)
Anyway, since this is a tutorial and web development website, I've decided to help any others who may be having this problem.
Create a .htaccess file and add the following to the bottom: Code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^yoursite.com [nc]
rewriterule ^(.*)$ http://www.yoursite.com/$1 [r=301,nc]
There are two other options if the previous doesn't work: Code:
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
RewriteRule (.*) http://www.yoursite.com/$1 [L,R=301]
And here's the last one: Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com$
RewriteRule ^/?$ "http\:\/\/www\.yoursite\.com" [R=301,L]
I hope this helps anybody who may be having a similar issue. =)