#Options -Indexes
AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule
^(.*) index.php
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$
http://www.%{HTTP_HOST}/$1 [QSA,L]