我有这样的site,当你点击在中心去,我把它去这个网址取出的index.php不工作
http://dev.posnation.com/welcome/redirect
这是不是欢迎控制器和正确的页面重定向操作。正确的URL是
http://dev.posnation.com/index.php/welcome/redirect
我笨结构是这样的
[email protected] 1 tamer staff 225 Apr 11 13:09 .htaccess
[email protected] 18 tamer staff 612 Apr 8 17:26 application
drwxr-xr-x 11 tamer staff 374 Apr 11 09:46 css
[email protected] 6 tamer staff 204 Mar 24 14:20 graphics
drwxr-xr-x 17 tamer staff 578 Apr 11 09:54 js
[email protected] 10 tamer staff 340 Apr 7 12:20 system
[email protected] 16 tamer staff 544 Apr 7 12:20 user_guide
与index.php文件出来一个目录
我的.htaccess由该
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
任何想法
虽然这会产生site.com/index.php/controller/method吗? – Cogicero 2011-04-11 17:31:33
没有工作......也许它有一些与我的index.php和我的系统和应用程序文件夹生活 – Trace 2011-04-11 17:31:54
这主要是重定向到URI的index.php页面,请确保您设置为AUTO在您的路线和从配置文件中的base_url中删除'index.php',你的系统目录是服务器端,这应该没有任何作用。 – RobertPitt 2011-04-11 17:33:17