2012-12-12 89 views
0

我將我的web項目加載到新安裝的wamp應用程序中,當我點擊到我網站的其他頁面的鏈接時,它被導向到phpmyadmin主頁。我的web項目是使用codeigniter框架開發的。當點擊鏈接時WAMP重定向到phpmyadmin主頁

根據apache的錯誤日誌,

[星期三年12月12 16點56分38秒2012] [錯誤] [客戶端127.0.0.1]文件不存在 :C:/瓦帕/網絡/ mathplication /一下,引用者: [星期三年12月12十六點56分40秒2012] [錯誤] [127.0.0.1客戶]文件不存在:C:/瓦帕/網絡/資產

在htacess文件內容如下

RewriteEngine On 
RewriteBase /mathplication/ #RewriteBase/

#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.* RewriteCond $1 !^(index\.php) 
RewriteRule ^(.*)$ /index.php?/$1 [L] 

#When your application folder isn't in the system folder 
#This snippet prevents user access to the application folder 
#Submitted by: Fabdrol 
#Rename 'application' to your applications folder name. 
RewriteCond %{REQUEST_URI} ^application.* 
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 
RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule> 

但錯誤依然存在。

不知道還有什麼我可以檢查。先謝謝您的幫助!

+0

所以你說這是因爲.htaccess文件的 –

+0

哦我不確定問題出在哪裏。但是當我使用Google時,大多數都提到.htaccess文件。 – edelweiss

+0

k嘗試用我發佈它的代碼作爲答案........如果它不起作用讓我知道............ –

回答

1

與此代碼嘗試............

RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L] 

.htaccess文件中刪除所有其他的事情

相關問題