Cuando uso el .htaccess como se indica a continuación, aparece el error The requested URL was not found on this server . Mis configuraciones son como
Digitalocean: var/www/html/mi_sitio/ .htaccess como
<IfModule mod_rewrite.c> # Rules to serve URLs which point to files directly # ---------- RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>Cambié /etc/apache2/apache2.conf de
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>Para
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> El archivo /etc/apache2/mods-enabled/dir.conf como
<IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm </IfModule> Cambié myapp\application\config\config.php como $config['index_page'] = ''; y $config['uri_protocol'] = 'REQUEST_URI';
Y he ejecutado los siguientes comandos en mi servidor digitalocean
sudo a2enmod rewrite sudo service apache2 reload Cuando abro my_site en el navegador, después de hacer todo esto, recibo el siguiente mensaje 
Si elimino .htaccess y restablezco myapp\application\config\config.php como $config['index_page'] = 'index.php'; Está funcionando. Así que por favor ayuda.
debería ser así
<Directory /var/www/html/my_site/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>