2017-04-18 69 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

编辑答案:( –