我在subdirecotry www.siteb.com/rexona安裝CI笨沒有輸入文件中指定的錯誤
我裏面www.siteb.com/rexona的.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /rexona
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#‘system’ can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn’t true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
在config.php:
$config['index_page'] = '';
$config['base_url'] = '';
$config['uri_protocol'] = 'AUTO';
每當我嘗試訪問控制器我得到沒有輸入文件中指定。但它確實加載了默認控制器,但我無法訪問默認控制器中的任何方法。
有什麼想法? 謝謝。
如果我將代碼移動到PHP作爲Apache模塊運行的服務器,這仍然可行嗎? – 2012-11-25 15:50:42
@Peter如果'uri_protocol'configuration設置爲AUTO,我會懷疑它的確如此。但是,當服務器使用另一種類型的實現時,我不建議使用特定於服務器設置。 – Repox 2012-11-25 15:54:37
謝謝,它在現場託管和錯誤相關的錯誤錯誤無法加載動態庫消失 – 2015-05-24 09:47:33