moved the www. rewrite on top of the index.php rewrite for .htaccess