Установил свежее приложение на вируталке на Ubuntu. Сайт открылся нормально. Раскомментировал Urlmanager в main.php - получаю ошибку вида
Not Found
The requested URL /site/about was not found on this server.
В папке frontend/web лежит .htaccess с таким кодом:
Код: Выделить всё
RewriteEngine on
# If a direcrory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
Код: Выделить всё
<VirtualHost *:80>
ServerName turbosite.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/turbosite.com/frontend/web
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>