2016-10-26 4 views
0

私はすでにdomain-one.comと言うことができますpublic_html/wpディレクトリ内のWordpressインストールを持っています。今度はアドオンドメインdomain-two.comをルートディレクトリにpublic_html/govtとして追加しました。今私はディレクトリwpの中にdomain-two.comのために再びwordpressをインストールしました。だから今、私は、ディレクトリ構造の下に持っている -アドオンドメインと2番目のワードプレスインストールが動作しません

enter image description here

私の最初のウェブサイト、すなわちdomain-one.comた正常に動作しています。しかし、私がdomain-two.com/wp/wp-admin/に行くと、それは私のログイン/ダッシュボード画面が表示されず、代わりに画面の下に表示されます。 public_html/ディレクトリで

enter image description here

public_html/govt/にそのようなファイルが存在しない間(domain-one.com用).htaccessindex.phpファイルがあります。

public_html/.htaccessファイルの内容

# BEGIN WordPress 
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase/
RewriteRule ^index\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 
</IfModule> 

# END WordPress 

public_html/index.phpファイルの内容

<?php 
/** 
* Front to the WordPress application. This file doesn't do anything, but loads 
* wp-blog-header.php which does and tells WordPress to load the theme. 
* 
* @package WordPress 
*/ 

/** 
* Tells WordPress to load the WordPress theme and output it. 
* 
* @var bool 
*/ 
define('WP_USE_THEMES', true); 

/** Loads the WordPress Environment and Template */ 
require(dirname(__FILE__) . '/wp/wp-blog-header.php'); 

domain-two.comログイン/ダッシュボード画面が表示されるように、私は何をすべきでしょうか?

UPDATE 1this記事を経た後、私はpublic_html/govtフォルダに.htaccessファイル(とのindex.php)を作成し、その中に以下の内容を置きます。私はルートフォルダのhtaccessファイルの内容でも試しました。しかし、問題はどちらの場合も同じです。

# BEGIN WordPress 
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase /govt/ 
RewriteRule ^index\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /govt/index.php [L] 
</IfModule> 

# END WordPress 
+0

これはapache2サーバーですか? – UltrasoundJelly

+0

あなたは、あなたのサーバーにBluehostを適切に指摘して、2番目のサイトのトラフィックを新しいディレクトリに誘導する仮想ホストを設定しましたか? – UltrasoundJelly

答えて

0

WordPressを手動でインストールしてみてください。私も同じ問題がありました。 WordPressをダウンロードして抽出し、このフォルダ内のWordPressファイル全体を移動します。既にdBを作成している場合は、config.phpを変更します。それ以外の場合は、dbの作成を要求します。私はこれが役立つことを願っています

関連する問題