WordPressでパーマリンクを投稿名にしようとしたら、404になっちゃってどうしようもなかったんですよね。
いやー、いままでここで時間をかけてことはかなったなぁと思うんだけど、ちょっとつまづきました。サーバの環境を作っている時にどこかのタイミングで設定変えてしまっていたのかも。
結局、変えた箇所は一箇所だけでした。
/etc/httpd/conf/httpd.conf
の<Directory "var/www/html">
で指定していた、AllowOverrideがNoneになってたんですね。これをAllに変えれば解消です。
# # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options -Indexes FollowSymLinks # # 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 # # Controls who can get stuff from this server. # Order allow,deny Allow from all
いやー、解消してよかった!