Buongiorno a tutti, sto provando ad eliminare index.php dall' url del sito attraverso il file .htaccess ed ho effettuato due prove:Ho preso il codice suggerito nel sito di codeigniter per il file .htaccess e l'ho inserito nel mio file (nella root principale):
codice:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Ma nella pagina non vengono caricati ne i css ne i js.
Ho provato, allora, ha cercare un po in internet e nel forum di stackoverflow ho trovato il seguente codice:
codice:
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond $1 !^(index\.php|css|images|robots\.txt)
RewriteRule ^(.*)$ ./index.php/$1 [L]
Con il quale riesco tranquillamente a caricare i file css e js, ma se tento di aprire una pagina (o più specificatamente un controller) ottengo errore 500.
Premetto che:
Se il link é: index.php/controller funziona
Se il link é: controller o /controller da errore 500.
Grazie in anticipo per l'eventuale aiuto 
Chiedo venia, risolto con il seguente codice:
[code]
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
[/code>