Redireccionar index.php en CodeIgniter
Creé una aplicación CodeIgniter y ahora estoy tratando de redirigir las URL con index.php a URL sin ella.
Mi actual .htaccess es:
RewriteEngine On
RewriteBase /
# Removes trailing slashes (prevents SEO duplicate content issues)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]
# Enforce www
# If you have subdomains, you can add them to
# the list using the "|" (OR) regex operator
RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC]
RewriteRule ^(.*)$ http://www.plugb.com/$1 [L,R=301]
# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
El único problema es que se puede acceder a la misma página con y sin index.php.
Por ejemplo:
http://www.plugb.com/index.php/games/adventure-rpg
y
http://www.plugb.com/games/adventure-rpg
¿Hay alguna manera de redirigir las URL index.php?
Gracias Gabriel