2016-03-27 5 views
0

"あなたのアプリケーションのフォルダパスが正しく設定されていないようです。次のファイルを開き、これを修正してください:index.php"というエラーが表示されます。メインドメイン内のフォルダ内のサイトを使用します。必要に応じて、私の.htaccessファイルは次のようになります。アプリケーションのフォルダパスが正しく設定されていないように見える

<IfModule mod_rewrite.c> 

############################################ 
## enable rewrites 

# For security reasons, Option followsymlinks cannot be overridden. 
# Options +FollowSymLinks 
    Options +SymLinksIfOwnerMatch 
    RewriteEngine on 

############################################ 
## you can put here your magento root folder 
## path relative to web root 


############################################ 
## workaround for HTTP authorization 
## in CGI environment 

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 

############################################ 
## always send 404 on missing files in these folders 

    RewriteCond %{REQUEST_URI} !^/(media|skin|js)/ 

############################################ 
## never rewrite for existing files, directories and links 

    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-l 

############################################ 
## rewrite everything else to index.php 

    RewriteRule .* index.php [L] 

</IfModule> 

<IfModule mod_security.c> 
    # Turn off mod_security filtering. SMF is a big boy, it does not need its hands held. 
    SecFilterEngine Off 

    # The below probably isn't needed, but better safe than sorry. 
    SecFilterScanPOST Off 
</IfModule> 
+0

xamppを使用していますか?ワンプ? – user4419336

+0

「メインドメインのフォルダ内のサイトを使用する」と言うと、サブドメインのような意味ですか? – user4419336

+0

はい、サブドメインに似ています。しかし、実際にはサブドメインではありません。これは通常のフォルダです。 –

答えて

0

あなたは通常、これはめちゃくちゃbase_urlか何かから来る、またあなたの「設定」ファイルを投稿する必要があります。

$config['base_url']   = 'http://yourUrl.com/'; 
$config['index_page']   = ''; 
$config['uri_protocol']  = 'REQUEST_URI'; 
$config['url_suffix']   = ''; 

.htaccessファイル:CIと私の作業現場では使用しています

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase/

    #Add www. 
    RewriteCond %{HTTP_HOST} ^www.yourUrl.com [NC] 
    RewriteRule ^(.*)$ http://.yourUrl.com/$1 [L,R=301] 

    RewriteCond %{REQUEST_URI} ^core.* 
    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> 

を、すべてが正常に動作します。独自のconfig/htaccessファイルで確認できます。ここから

Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.phpCodeIgniter CLI giving system_path error "path does not appear to be set correctly."

ソリューションが空白の$ system_pathを残すことだった...

$ system_path = '';

あなたの代わりにこれを試すことができます。

$ system_path = './system';

一部の人々はまた、CIフォルダにアクセス権を設定することでこれを解決:

  1. は755例:にプロジェクトフォルダのアクセス許可を設定します。 sudoのはchmod 755の/ var/www /のmyCIproject/

そして最後に、共有サーバー/フォルダの:

https://serverfault.com/questions/371739/putting-folders-above-public-html-in-a-shared-hosting-environment

はそれが役に立てば幸い!

関連する問題