.htaccessを有効にする
Apacheはデフォルトで.htaccessを無効にしておりますので、有効にするにはhttpd.confを修正します。
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
AllowOverride All // ←NoneをAllに修正
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
また、.htaccess自身へのアクセスを禁じる場合、
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
これはデフォルトで記されているが、
<Files ~ "^\.ht">
は
<Files ~ "^\.">
でも構わないかと思われますが...。




