2016-05-06 14 views
1

私はcakePHP 3を使ってアプリケーションを開発しています。 localhostでは、私のWebページは大変でした。一度サーバーに入れてフォルダに入れると、このようなエラーが発生しました。cakePHPサブディレクトリ

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.

または私は.htaccessの少しで演奏するときには、このエラーを行いました:

The requested URL /php-fastcgi/php5/webroot/index.php was not found on this server.

私の.htaccessは次のようになります解決

<IfModule mod_rewrite.c> 
    RewriteEngine on 
    RewriteRule ^$ app/webroot/ [L] 
    RewriteRule (.*) app/webroot/$1 [L] 
</IfModule> 

答えて

1

問題:

バージョン

のため、この行を.htaccessに追加する必要がありました10

AddType application/x-httpd-fastphp7 .php

ありがとうございました。

関連する問題