htaccess works in localhost but doesn't work in EC2 instance

后端 未结 6 645
情深已故
情深已故 2020-12-14 19:36

My htaccess file works on localhost but doesn\'t work when i deploy it to EC2 instance.

I\'m using Macbook and in finder i cannot see the htaccess file, i thought t

6条回答
  •  粉色の甜心
    2020-12-14 19:48

    By default EC2 doesn't have .htaccess enabled, you must edit your httpd.config to allow for it.

    In /etc/apache/sites-available/default change AllowOverRide = None to AllowOverRide = All.

提交回复
热议问题