既存にあるワードプレスは、「http://〇〇〇〇/wp」
これをサイトURLだけ、 「http://〇〇〇〇/wordpress」
自分で調べてに変更。500エラーになり分からないので教えて下さい!!
注意点
・ワードプレス本体は移動しない。
行ったこと
1.wordpressのフォルダを作成
2.wpにある「index.php」「.htaccess」をコピーし、以下のように編集
■index.php
require( dirname( FILE ) . '/wp-blog-header.php' );
↓
require( dirname( FILE ) . '/wp/wp-blog-header.php' );
■.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]
</IfModule>
↓
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /**wordpress**/ RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /**wordpress**/index.php [L] </IfModule>3.wordpressに「index.php」「.htaccess」をアップロード
4.WP管理画面から「サイトアドレス(URL)」を以下のように変更し保存
http://〇〇〇〇/wp
↓
http://〇〇〇〇/wordpress
5.http://〇〇〇〇/wordpressにアクセスするとエラー
発生している問題・エラーメッセージ
HTTP ERROR 500
なんでですか?
意味がわかりません。
初歩的なことかもしれませんが、時間のみ過ぎていきます。。。
どなたか教えてください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/29 14:22
2019/08/29 15:13