Hello, World!

難しいことは書けません

WordPressで複数のサイトを作る

WordPressで複数のサイトを作る際に、新しく作ったサイトにアクセスするとnot foundとでたのでそのときの解決法をメモ

以下のサイト参考に作成
usortblog.com

調べたらAllowOverride NoneをAllにするとか、.htaccessの設定がおかしいという記事を目にするけどどれもきちんとできていたので何故かな〜と思っていたらmod_rewriteが原因だった

httpd.confのmod_rewriteコメントアウトされていたから!!
f:id:eeko-amaryllis:20171117140816p:plain:w500
これを有効化して、

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None

上記のところをAllowOverride Allに変更し、Apasheを再起動するとできた!

sudo apachectl restart

なんだ〜〜


以下参考サイト
centoshome.seesaa.net