2017-04-18 70 views
0

,而我使用重定向(「管理」,「刷新」)從登錄控制器方法,在URL它顯示本地主機/ rsufadmin/index.php文件/管理員 ....我有一個包含問題去除笨的index.php 3時使用笨3.1.3重定向方法

RewriteEngine on 
RewriteCond $1 !^(index\.php|resources|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

如果我手動鍵入本地主機/ rsufadmin /管理員,管理控制器的工作就好了一個htaccess文件...但我必須去控制器的其他控制器。那麼,我怎樣才能從url中刪除這個index.php部分? 我有下面的一些截圖,使其更容易理解... while using redirect method from controller,.. while manually entering url

回答

0
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteCond $1 !^(index\.php|images|asset|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 
+0

相同的結果......在config.php –

+0

刪除的index.php,並請chaeck您刪除索引.php in config.php ??? –

+0

編輯答案:( –