私は自分のサイトにwwwを強制する必要があります。私のサイトはcodeigniterフレームワークで構築されています。
これは私のhtaccessです
RewriteEngine on
RewriteCond $1 !^(index\.php|css|images|js|plugins|Scripts|pirobox|applications-assets|user-assets|robots\.txt)
RewriteCond %{HTTP_HOST} !^www\.(.*)
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteRule ^(.*)$ /index.php?/administrator/$1 [L]
しかし、それは機能していません。ここで何が問題なのか教えていただけますか?