2017-01-15 10 views
0

私はサブフォルダにコード署名者をアップロードし、ルートにはワードプレスWebstieがあります。私はこのCodeigniterがルートワードプレスのウェブサイトのサブフォルダで動作していません

$config['base_url'] = 'http://xxxxxxxxxxxx.com/onlinebooks/'; 

などのサブフォルダ名の名前の設定ベースURLを変更しかし、これはまだ私がURL

に呼び出す任意のコントローラのための404を得た後誰もがこのについての私を助けることができますか?

答えて

0

この

は、ルートフォルダに.HtaAccessを作成し、この

<IfModule mod_rewrite.c> 
    RewriteEngine On 


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

<IfModule !mod_rewrite.c> 


    ErrorDocument 404 /index.php 
</IfModule> 
0

404を貼り付けてみ、多分あなたはこれが正しい.htaccessだろう、URLにindex.phpを削除するようにコードを変更しました。

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase /onlinebooks/ 
    RewriteCond %{REQUEST_URI} ^system.* 
    RewriteRule ^(.*)$ /index.php?/$1 [L] 
    RewriteCond %{REQUEST_URI} ^application.* 
    RewriteRule ^(.*)$ /index.php?/$1 [L] 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond $1 !^(index\.php|images|stylesheets|javascript) 
    RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 
<IfModule !mod_rewrite.c> 
    ErrorDocument 404 /index.php 
</IfModule> 
関連する問題