LoginSignup
0
0

More than 1 year has passed since last update.

WordPressのハイパーリンクを設定した

Posted at

初めに

PCが余っていたのでUbuntu入れてWordpress入れてハイパーリンクを設定したが404エラーが表示されてしまった。

解決方法

今回はApacheでの解決方法です

ggってみるとmod_rewriteを有効化すればよいと書かれていましたがダメでした...
そのほかのhtaccessの書き換えもダメでした

設定ファイルを見ているとAllowOverrideがNoneのままでした。
なので/etc/apache2/conf.dを以下のように変更すればしっかりパーマリンクが機能してくれました。
変更する前

/etc/apache2/conf.d
 <Directory /var/www/html>
      AllowOverride None
 </Directory>

した後

/etc/apache2/conf.d
 <Directory /var/www/html>
      AllowOverride All
 </Directory>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0