URL が「http://www.example.com/start」のようになり、「http://www.example.com/index.php/start」のようになりません。私の .htaccess の次のコードで問題なく動作します。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1
あるページでは、GET-Parameters を使用する必要があります。URL は次のようになります: "http://www.example.com/artists/picasso" で、"http://www.example.com /index.php/artists?artist=picasso" 次のコードでも可能です:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /index.php?/$1
RewriteRule ^artists/(.*)$ /index.php/artists?artist=$1 [L]
さて、このソリューションの問題は、他のすべての URL がスラッシュで終わらなければならないことです。したがって、「http://www.example.com/start/」のようにする必要があり、「http://www.example.com/start」のようにする必要は
ありません。
ご協力いただきありがとうございます !