Ben CodeIgniter uygulama oluşturulmuş ve şimdi ben onsuz URL'lerin index.php ile adresler yönlendirmek çalışıyorum.
. Benim geçerli htaccess olduğunu:
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]
Tek sorun, aynı sayfa ve index.php olmadan erişilebilir olmasıdır.
Örneğin:
http://www.plugb.com/index.php/games/adventure-rpg
ve
http://www.plugb.com/games/adventure-rpg
Index.php URL'leri yeniden yönlendirmek için bir yolu var mı?
Thank you, Gabriel.