2017-10-02 12 views
0

godaddyでcodeigniterを動作させる際に問題があります。 私はいろんなことを試みましたが、私のためにはうまくいかないようでした。どんな助けもありがとう。codeigniterがgodaddyサーバーで動作しない

私のhtaccessファイルは、以下のようなものです:

RewriteEngine on 
RewriteBase /code-igniter/ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 

と私はすでに私のconfigファイルの変更:

$config['index_page'] = "index.php?"; 

$config['uri_protocol'] = 'REQUEST_URI'; 

助けてください!!の

+0

問題は 'index.php'ているのですか?あなたのホストは '書き換えを有効にしました'? – elddenmedio

+0

はい書き換えが有効になっていますが、index.phpはどうですか? –

+0

なぜ書き換えベース '/ code-igniter /'? 'index_page'の最後に疑問符が必要ではありません。 –

答えて

0
<IfModule mod_rewrite.c> 
RewriteEngine On 

# If your page resides at 
# http://www.example.com/code-igniter/ 
# then use 
# RewriteBase /code-igniter/ 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule> 

のconfig/config.phpの

$config['index_page'] = '';  

$config['uri_protocol'] = 'AUTO'; 
+0

私はこれを試しましたが、残念ながら私のシステムはまだ動作していません! –

+0

あなたのファイルはどのディレクトリにありますか? http://www.example.comまたはhttp://www.example.com/foldername/ –

関連する問題