My .htaccess file is:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt|img/|css/|js)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
It removes index.php from the URL and forces a redirect from example.net to www.example.net, but when I enter http://example.net, it does not redirect to www.example.net. How can solve this?