2014-02-13 202 views
0

大家好我一直在開發使用笨,沒有任何問題,我現在希望將我的網站,並使其生活可以這麼說一個網站,我已經更新了基地址,並可以訪問我的登錄頁面沒有問題,我也inlcuded以下.htaccess文件:笨404未找到錯誤

<IfModule mod_rewrite.c> 
     RewriteEngine On 
     RewriteBase /livesystem/ 

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

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

     # Directs all EE web requests through the site index file 
     RewriteCond %{REQUEST_FILENAME} !-f 
     RewriteCond %{REQUEST_FILENAME} !-d 
     RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 
<IfModule !mod_rewrite.c> 
     ErrorDocument 404 /index.php 
</IfModule> 
然而

,當我與本地主機在CI以下行會沒有問題工作的工作: 重定向(「主」);

然而,當這個運行在我的直播現場我收到以下頁面返回 未找到

404 Not Found: The requested URL /livesystem/index.php was not found on this server. 

我已經檢查了的index.php是我笨的根文件夾內的逸岸,它是 - 有沒有人有什麼想法? - 我想這是很簡單的東西,我已經錯過了。任何幫助,將不勝感激

回答

1

你設置$config['base_url']爲您的域名 在.htaccess文件修改的最後一行是這樣

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

,我將它的工作

+0

我就給你一個嘗試感謝您的建議 - 我仍然得到相同的錯誤不幸的 – TotalNewbie

+0

你歡迎..let我再試一次 –

+0

你能給我一個例子htaccess的例子,如果基地的網址是test.com/user1 – TotalNewbie