RewriteEngine On
RewriteRule ^([a-z]+)/$ $1.php [L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
<Directory /var/www/domain/web/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>