我有這樣的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