2014-01-16 197 views
1

我有一個已經有我拉我的頭髮在過去的幾個星期..我一直有一個爆炸發展Codeigniter網站上我的本地機器,一切恢復正常功能的本地計算機上的問題,但是當我的網站上傳到生產服務器,然後鏈接停止工作,只要點擊給我一個500內部服務器錯誤也AJ​​AX POST請求也產生從控制檯500內部錯誤。我真的很難倒的問題可能是什麼這就是爲什麼我來這裏問,可能有人幫我請。另外我沒有shell訪問 這是我的htaccess文件笨500服務器錯誤

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase/

RewriteCond %{REQUEST_URI} ^system.* 
RewriteRule ^(.*)$ /index.php?/$1 [L] 



RewriteCond %{REQUEST_URI} ^application.* 
RewriteRule ^(.*)$ /index.php?/$1 [L] 


RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 
+0

看起來你是新來的,歡迎!你有沒有檢查右邊的相關答案? – JochemQuery

+0

您的服務器上是否有重寫模塊處於活動狀態? –

+0

是的我做我只是確認是否重寫模塊可 – user2293554

回答

1

用這個作爲的.htaccess

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase/

    RewriteCond %{REQUEST_URI} ^sys.* 
    RewriteRule ^(.*)$ /index.php?/$1 [L] 

    RewriteCond %{REQUEST_URI} ^app.* 
    RewriteRule ^(.*)$ /index.php?/$1 [L] 

    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 
<IfModule !mod_rewrite.c> 
    ErrorDocument 404 /index.php 
</IfModule> 

assumming是的index.php是你的索引頁。

和變化在config.php

$config['index_page'] = ''; 

如果你正在使用的子域將其設置爲RewriteBase

+1

依然感激這個htacces似乎上班。你可以告訴我whwt與我的htaccess錯了嗎? – user2293554

+0

如果你發現答案是可以接受的。請將其標記爲已接受的答案... –