After uncomment enablePrettyUrl get 404 error
For example:
The requested URL /site/index was not found on this server.
Apache/2.4.7 (Ubuntu) Server at yiibasic.com Port 80
When I comment it again, everything is working
'components' => [
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
],
]
Can't understand what the problem is.
.htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php