2012-01-11 21 views
0

私はKohana 2.3.xでいくつかのアプリケーションを実行しています。今日私のホスティングプロバイダーはマシンをpgradedし、サイトは動作を停止しました。ウェブサイトを開こうとするとNo input file specifiedが届きます。 .htaccessファイルに何か問題があることがわかりました。特に私がindex.phpを省いたルールは...私はこれのためにurget fiが必要です!ありがとうございました。私の.htaccessファイル:htaccessで指定された入力ファイルがありません

# Turn on URL rewriting 
RewriteEngine On 

# Put your installation directory here: 
# If your URL is www.example.com/kohana/, use /kohana/ 
# If your URL is www.example.com/, use/
RewriteBase/

# Protect application and system files from being viewed 
RewriteCond $1 ^(system) 

# Rewrite to index.php/access_denied/URL 
RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L] 

# Allow these directories and files to be displayed directly: 
# - index.php (DO NOT FORGET THIS!) 
# - robots.txt 
# - favicon.ico 
# - Any file inside of the images/, js/, or css/ directories 
RewriteCond $1 ^(index\.php|robots\.txt|sitemap\.xml|favicon\.ico|static/images|static/js|static/css|static/tutorials|upload) 

# No rewriting 
RewriteRule ^(.*)$ - [PT,L] 

# Rewrite all other URLs to index.php/URL 
RewriteRule ^(.*)$ index.php/$1 [PT,L] 
#AddHandler application/x-httpd-php5 .php 

私はこの部分RewriteRule ^(.*)$ index.php/$1 [PT,L]をコメントする場合、そのサイトが開きます。なにが問題ですか?

答えて

1

PHPをCGIモードでインストールしたホストを使用している可能性があります。

あなたはこれを試すことができます。

RewriteRule ^(.+)$ index.php?$0 [PT,L,QSA] 

またはこの:

RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L] 

よろしく

関連する問題