LoginSignup
4
1

More than 5 years have passed since last update.

wordpressで記事がnotFoundになる。

Last updated at Posted at 2017-01-23

wordpressを使っていてブログを書いてアクセスしてみると

http://ドメイン名/2017/01/23/1/

を開いた時に、「not Found」と表示されます。

これは、2017/01/23/1/(パーマリンク)がapacheに無視されちゃってるのが原因です。

$ cd /etc/httpd/conf/
$ sudo vim httpd.conf

<Directory "/var/www/html/wordpress">
AllowOverride none
</Directory>

の部分のnoneをAllに変更します。

AllowOverride All

に変更します(これによって.htaccessが無視されます。安全な初期設定としてこうされている)
image

これによってパーマリンクもきちんと表示されるようになります。

参考

4
1
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
4
1