I know this question is being ask already, i tried all those but still unable to remove index.php from url.
Here are my details 

```
Ubuntu 12.10
PHP : 5.4.6
Mod_rewrite in on
CI verson: 2.1

```

.htacess look like:

```
RewriteEngine On
RewriteBase /projectname

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]  

```

I also look at the below link but no luck..
[Cannot remove index.php from url CI based site](https://stackoverflow.com/questions/11580970/cannot-remove-index-php-from-url-ci-based-site)

[How to remove "index.php" in codeigniter's path](https://stackoverflow.com/questions/1445385/how-to-remove-index-php-in-codeigniters-path)

My "/etc/apache2/sites-available/default" is look like this:

```
<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None 
        </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

```

Any help appreciated!!