2011-08-23 41 views
0

在我的開發服務器,引薦名字看起來像dev.host.in和IP看起來就像123.456.456.111/dev/問題與的.htaccess和index.php文件

我使用笨框架。我已經設置了.htaccess文件來刪除index.php。當我通過dev.host.in/testproject/訪問網站時,它的工作正常。但是當我使用123.456.456.111/dev/testproject/訪問它時,它不顯示頁面。 但是,當我訪問123.456.456.111/dev/testproject/index.php我得到的網站。

如何解決此問題?

+1

小心發佈您的htaccess「修改」? –

回答

1

在.htaccess文件將這個:

<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> 

如果你仍然有問題,請訪問此link