1

codeigniter プロジェクトを使用して、次の共有ホスティング ファイル構造があります。

myTLD.com/sites/mysite

mysite contains: application, system , index.php ... ( standard CI2 setup )

myTLD.com/public_html - contains : index.php

myTLD.com/public_html/index.php を myTLD.com/sites/mysite/index.php にシンボリックリンクしました

残念ながら私は得ています:

Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

セキュリティ上の理由から、実際のサイトをドキュメント ルートに配置しないように、このように設定しました。プロジェクト全体を簡単に修正できる mysite ディレクトリに保持したいので、 mysite/index.php を変更したくありません。

アプリケーションと mysite/ フォルダーは 755 に設定されているため、これはパーミッションの問題ではないと思います。

私の myTLD.com/public_html/.htaccess フォルダーは、すべてのリクエストを index.php に送信します。

RewriteEngine On
RewriteRule ^(.*)$ index.php

このエラーを発生させずに、リクエストを codeigniter インデックス ファイルに送信する方法について誰かアドバイスしてもらえますか?

ありがとうございました

4

1 に答える 1

0

次の方法を試すことができます

1) シンボリックリンクを削除します

2) htaccess でこれを使用します。myTLD.com/public_html/.htaccess

RewriteEngine on
RewriteRule ^(.*)$ myTLD.com/sites/mysite/index.php?/$1 [L]

わかっている場合は、絶対システム パスを使用してください。

于 2013-05-23T23:13:09.607 に答える