にほんブログ村 その他日記ブログ 無職日記へ
にほんブログ村

こんにゃちわ、猫山通信の猫山猫雄ですにゃ。

Ubuntu18.04でWordpressをインストールしてパーマリンク設定を基本以外にすると404になってしょんぼりしてました。

一応解決したのでメモ代わりに記載しておきます。
前提条件として、 WebArenaのVPSクラウドにて Ubuntu18.04イメージで構築

基本的にはここのページを参照します。
Overrideを許可 以降を別方法でやります。
sudo vi /etc/apache2/apache2.conf

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None ←このNoneをAllに変更
        Require all granted
</Directory>

あとはApacheを再起動
sudo service apache2 restart

これでできるはずです。(何か足りなければ追記します。)

それでは皆様、次の投稿でまた会いましょうにゃ。

“パーマリンク設定すると404になる対応” に1件のフィードバックがあります
  1. It’s the best time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I desire to suggest you some interesting things or
    tips. Perhaps you can write next articles referring to this article.
    I desire to read more things about it!

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です