2011-12-21 5 views
13

私は現在、自分のホスティングアカウントのクライアントからウェブサイトを設定しています。何らかの理由でウェブサイトのアドレスが.phpファイル(index.php)になっていません。私はindex.phpを入れて、私は次のエラーを受け取る何index.htmlファイルが存在しない場合:htaccessからデフォルトのウェブサイトページを設定するには?

If you feel you have reached this page in error, please contact the web site owner: [email protected] If you are the web site owner, it is possible you have reached this page because: The IP address has changed. There has been a server misconfiguration. The site may have been moved to a different server. If you are the owner of this website and were not expecting to see this page, please contact your hosting provider.

彼のホスティングcPanelの上で共有ホスティングです。

答えて

24

あなたの.htaccessファイル内のDirectoryIndexディレクティブを使用し

DirectoryIndex index.php 
2

は問題が解決しない場合は、

のようにindex.htmlをを提供することにより、それを回避する必要があるかもしれません

DirectoryIndex index.php 

をお試しください

<html><frameset rows="*"><frame src="index.php"></frameset></html> 

(ofcourse more elaborate)

+0

すでにこの種の解決策が提案されている場合、フレームの使用は絶対に役に立たず、対応する ''タグでリダイレクトを設定するだけです。 –

3

この問題は、私のキャッシュをクリアしたらすぐに、私のウェブブラウザのキャッシュによって引き起こされました!

関連する問題