Grr! Here is the code I put in my .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
And yet, when I type in "http://example.com" I get redirected to "http://www.example.com/public/", which results in a 404 error (because the directory doesn't exist in that location).
Could my .htaccess file be in the wrong spot? Right now, it appears in the root directory of my ftp login (I still have to navigate through /public/ to get to my site files), which is where it was by default. Do I need to move it, or create a new one in a different directory? HELP!
Thanks :)