質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
URL

URL(ユニフォームリソースロケータ)とは、インターネット上のリソース(Webページや電子メールの宛先等)を特定するための形式的な記号の並びの事を言う。

Webサイト

一つのドメイン上に存在するWebページの集合体をWebサイトと呼びます。

WordPress

WordPressは、PHPで開発されているオープンソースのブログソフトウェアです。データベース管理システムにはMySQLを用いています。フリーのブログソフトウェアの中では最も人気が高く、PHPとHTMLを使って簡単にテンプレートをカスタマイズすることができます。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

Q&A

解決済

2回答

875閲覧

WordPress 管理者ページが開けない

toratail

総合スコア12

URL

URL(ユニフォームリソースロケータ)とは、インターネット上のリソース(Webページや電子メールの宛先等)を特定するための形式的な記号の並びの事を言う。

Webサイト

一つのドメイン上に存在するWebページの集合体をWebサイトと呼びます。

WordPress

WordPressは、PHPで開発されているオープンソースのブログソフトウェアです。データベース管理システムにはMySQLを用いています。フリーのブログソフトウェアの中では最も人気が高く、PHPとHTMLを使って簡単にテンプレートをカスタマイズすることができます。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

0グッド

0クリップ

投稿2020/12/26 08:24

編集2020/12/27 23:41

管理者ページへアクセスできません

WordPressアドレスとサイトアドレスを変更してしまい、
管理者ページが開けなくなってしまいました。

発生している問題・エラーメッセージ

タブの文字が、『ページが見つかりません』となってしまいます。

該当のソースコード

wpconfigphp

1省略 2 3/** データベースの照合順序 (ほとんどの場合変更する必要はありません) */ 4define('DB_COLLATE', ''); 5define( ‘RELOCATE’, true ); 6/**#@+ 7 * 認証用ユニークキー 8 * 9 * それぞれを異なるユニーク (一意) な文字列に変更してください。 10 * {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org の秘密鍵サービス} で自動生成することもできます。 11 * 後でいつでも変更して、既存のすべての cookie を無効にできます。これにより、すべてのユーザーを強制的に再ログインさせることになります。 12 * 13 * @since 2.6.0 14 */ 15 16省略

試したこと

wp-config.phpファイルに、define( ‘RELOCATE’, true );というコードを追記

プラグインをすべて無効化、フォルダ名をplugins-1に変更

補足情報

ロリポップを使用しています。
管理者ページURLのリンクをクリックすると、サイトへ遷移してしまいます。

ご教授お願いします。

###追記

サイトURLのリンクへ飛び、consoleを表示するとこちらのエラーがでます。

Failed to load resource: the server responded with a status of 404 (Not Found) styles.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) twitter-feed.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.carousel.min.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.theme.default.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) font-awesome.min.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) foundation.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) jquery.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) jquery-migrate.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) scripts.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) navigation.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) skip-link-focus-fix.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.carousel.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) custom.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) foundation.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) wp-embed.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) jquery-migrate.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) c22d3946-1df2-4fd1-bbd4-80d7f33940fc-e1608774485434.jpeg:1 Failed to load resource: the server responded with a status of 404 (Not Found) Twitter_Social_Icon_Rounded_Square_Color-150x150.png:1 Failed to load resource: the server responded with a status of 404 (Not Found) scripts.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) navigation.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) skip-link-focus-fix.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) foundation.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) custom.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.carousel.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) wp-embed.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) twitter-feed.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) blocks.style.build.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) styles.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.carousel.min.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.theme.default.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) font-awesome.min.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) foundation.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

unrealsho

2020/12/26 09:08

wordpressはURLで様々な機能を制御しているので、 トップページのURL アクセスを試みたURL をダミーでもいいので表記するといいかもしれないですね。 『ページが見つかりません』のページの中身はどうなっていますか?
toratail

2020/12/26 10:00

ご回答ありがとうございます。 『ページが見つかりません』のページの中身は、サイトのトップページが表示されています。 表示されているサイトも、コーディングされていないページが表示されています。
unrealsho

2020/12/26 11:15

ちょっと説明がわからないです。 ドメイン名/wp-login.php にアクセスするとCSSが読み込まれていないトップページが表示される、ということでしょうか? アクセスを試みたURL F12を押して「console」に表示されているエラー などを投稿するともっと回答つくかもですね。
toratail

2020/12/27 23:36

ご回答ありがとうございます。 修正を提示してみます。
guest

回答2

0

解決することができました!

データベースの site_url、home_url を合わせ、

siteurl

1http://example.com

home

1http://example.com

FTPのwp-config.phpファイルに

define( 'WP_HOME', 'http://example.com' ); define( 'WP_SITEURL', 'http://example.com' );

上記を追加しましたら、管理者ページに遷移することができました。

本当に焦っていたので、助かりました。
ありがとうございました。

投稿2020/12/28 06:53

toratail

総合スコア12

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

ベストアンサー

DBでのsite_urlの値と実際に表示させているドメインで相違ありませんか?
下記を参考に site_url、home_urlを設定してみてください。

https://ja.wordpress.org/support/article/changing-the-site-url/

以下抜粋

wp-config.php の編集 #wp-config.php の編集

wp-config.php ファイル内で、サイト URL を手動設定できます。
以下の2行の “example.com” をサイトの正しいアドレスに置き換え、wp-config.php ファイルに追加してください。
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
これは最適な方法とは言えないかもしれません。サイトの値を決め打ちしているだけです。この方法を使うと、サイトの一般設定ページで値を変更することはできなくなります。

投稿2020/12/28 03:41

unrealsho

総合スコア93

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問