WordPressが外からアクセスできない?

ブログの定番、WordPressに関してはこちらから。

WordPressが外からアクセスできない?

投稿記事by mozart » 2013年7月11日(木) 23:09

LANの外からアクセスできないのは、LANの内と外のURLが変わる為です。

・内からアクセスする場合
  l.xxxx.wafflecell.com/blog
・外からアクセスする場合
  xxxx.wafflecell.com/blog

WordPressで以下の設定をしてください。

1)管理画面にログインし、URLを設定する
ログイン後、「設定」-「一般設定」にある「WordPress アドレス (URL)」と「サイトアドレス (URL)」をともに

   http://xxxx.wafflecell.com/blog

と設定。ここでxxxxはホスト名。

2)プラグインのインストール
プラグインの「新規追加」の検索で「Root Relative URLs」を検索。そしてこのプラグインをインストール後、有効にする。

以上で内外ですべての機能が使えるようになります。ただし内では l. の付くURLでブログにアクセスしましょう。


*おまけ
技術的な話ですが、WordPressはURLに絶対パスを使っていて、そのパスはすべて設定で定義したURLを先頭に使います。
しかし、ローカルでアクセスする場合はこのURLは使えません。(http://l.xxxxx.wafflecell.com/**** でないとだめ)
そこでプラグインでURLをすべて相対パスにします。
アバター
mozart
 
記事: 707
登録日時: 2013年5月24日(金) 13:56
お住まい: 東京の中心、板橋区

Re: WordPressが外からアクセスできない?

投稿記事by looneyhans » 2021年10月27日(水) 19:19

Well this is great site! Would definitely recommend this to my friends. Love the read
https://weldinghoustontx.com
looneyhans
 
記事: 278
登録日時: 2021年10月27日(水) 18:17

Re: WordPressが外からアクセスできない?

投稿記事by Killersmile » 2021年11月01日(月) 15:43

interesting post! nice! keep posting! https://bookkeepingaustintx.com
Killersmile
 
記事: 142
登録日時: 2021年11月01日(月) 14:39

Re: WordPressが外からアクセスできない?

投稿記事by Killersmile » 2021年11月01日(月) 15:46

lovely post! keep posting more! www.weddingphotographerspalmsprings.com
Killersmile
 
記事: 142
登録日時: 2021年11月01日(月) 14:39

Re: WordPressが外からアクセスできない?

投稿記事by Killersmile » 2021年11月01日(月) 16:09

lovely post! keep posting more! www.weddingphotographerswichitaks.com
Killersmile
 
記事: 142
登録日時: 2021年11月01日(月) 14:39

Re: WordPressが外からアクセスできない?

投稿記事by yeoyeo » 2021年11月07日(日) 05:17

あなたの笑いは私のお気に入りの音です https://cabinetsspokanewa.com
yeoyeo
 
記事: 147
登録日時: 2021年11月07日(日) 03:40

Re: WordPressが外からアクセスできない?

投稿記事by looneyhans » 2021年11月12日(金) 16:18

I really loved it here but are there any recent updates? Thanks relationship coach atlanta
looneyhans
 
記事: 278
登録日時: 2021年10月27日(水) 18:17

Re: WordPressが外からアクセスできない?

投稿記事by alexpogi11 » 2021年11月13日(土) 14:18

I really loved it here but are there any recent updates? Thanks fresno remodeling contractors
alexpogi11
 
記事: 142
登録日時: 2021年11月13日(土) 13:57

Re: WordPressが外からアクセスできない?

投稿記事by alexpogi11 » 2021年11月13日(土) 16:16

Well this is great site! Would definitely recommend this to my friends. Love the read Click here
alexpogi11
 
記事: 142
登録日時: 2021年11月13日(土) 13:57

Re: WordPressが外からアクセスできない?

投稿記事by alexpogi11 » 2021年11月13日(土) 16:18

Well this is great site! Would definitely recommend this to my friends. Love the read Click here
alexpogi11
 
記事: 142
登録日時: 2021年11月13日(土) 13:57


Return to WordPress 日本語版(ブログの定番)

オンラインデータ

このフォーラムを閲覧中のユーザー: なし & ゲスト[0人]