I need a 301 redirect script for SEO so that I can redirect non-www version to www.mysite.com
All my files are html with .htm extension and I am a complete newb to PHP but googled some PHP scripts and tested but none worked. I even duplicated index.htm to index.php and coded in there but couldn't get that to work either.
I posted similar in web developing HTML section of this forum but no luck there so far.
PLEASE HELP! I am now loosing much sleep over this problem. Thank you in advance.