LoginSignup
11
10

More than 5 years have passed since last update.

ubuntuでAllowOverrideを変更しても.htaccessが有効化しなかった時の対処法

Last updated at Posted at 2014-04-17

参考

大雑把にまとめ

.htaccessファイルを有効化する上でmod_rewrite.soモジュールが必要なので確認

apache2ctl -M

mod_rewrite.soモジュールを有効化させるためa2enmodコマンドを使う

/usr/sbin/a2enmod rewrite

apache2をrestartしてくださいとか言われたらok

httpd.conf(/etc/apahce2/sites-available/default)の設定を変更

<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
#   AllowOverride None
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

もう一回apacheをrestartさせておしまい

11
10
3

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
11
10