Hi I have one pligg based site & wan to redirect from non-www to www, but nothing worked. I searched the net & experimented with all the possible things in .htaccess. Currently this one is the code in .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^totalpad\.com RewriteRule (.*) http://www.totalpad.com/$1 [R=301,L] Could someone please help to resolve this. Thanks in advance.
RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule ^/?$ http://www.domain.com [R=301,L] this is how mine basically reads, hopefully it helps you. (edited the names of course)
the first code i put up was wrong, the current code that is up works for a site of mine, just checking if you meant the latest one, good luck man! Wish you had Cpanel or maybe your hosting provider can help you.
try putting just this in your .htaccess asdfhasdfhkjsadfhlkj And see what happens, it should error out, if it dosen't then your host probably does not have mod_rewrite enabled.