sanek_os9
@sanek_os9
Работаю с Laravel, Vue, Vuetify, AWS Amazon, Linux

Почему не работает RewriteEngine?

Доброго времени суток. У меня не работает в .htaccess следующий код
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php

Показывает ошибку
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.18 (Ubuntu) Server at zadanie.loc Port 80

Установил на линукс apache2.4 на котором такие проблемы, до этого стоял apache2.2 на винде, все работало
  • Вопрос задан
  • 1140 просмотров
Решения вопроса 1
sanek_os9
@sanek_os9 Автор вопроса
Работаю с Laravel, Vue, Vuetify, AWS Amazon, Linux
Был не установлен модуль rewrite, разобрался
включаем нужный модуль:
# a2enmod rewrite
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы