- /etc/apache2/apache2.conf 을 아래와 같이 설정합니다.
<Directory /var/www/html>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
Require all granted
</Directory>
- sudo a2enmod rewrite
- sudo service apache2 restart