حذف index.php

سلام دوستان گلم من index.php رو از طریق کد زیر که در .htaccess نوشتم حذف کردم و $config['index_page'] = ''; ست کردم

اما مشکلی که هست اینه که الان هم با index.php کار میکنه و هم بدون index.php

چیکار باید بکنم که وقتی url رو با index.php زدن به طور خودکار حذف بشه


کد:

<IfModule mod_rewrite.c>
Options +FollowSymLinks -Indexes
RewriteEngine on

# NOTICE: If you get a 404 play with combinations of the following commented out lines
#AllowOverride All
#RewriteBase /

# Restrict your site to only one domain
#RewriteCond %{HTTP_HOST} !^www.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

<IfModule mod_php5.c>
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_php5.c>
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

</IfModule>

#prevent access to htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

#disable directory browsing
Options All -Indexes
IndexIgnore *

حذف index.php


خرید بک لینک
کپی رابت محفوظ است اخبار ایران و جهان
قدرت گرفته از niloblog