as always here film.lc.conf
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName film.lc ServerAlias www.film.lc DocumentRoot /var/www/film.lc/ <Directory «/var/www/film.lc»> AllowOverride All Order allow,deny Allow from all Options +Indexes </Directory> ErrorLog /var/www/error.log CustomLog /var/www/access.log combined </VirtualHost> this is also a sudo a2enmod rewrite such thing AccessFileName .htaccess in apache.conf is present but I still type film.lc and drop out the list of files and folders of the site but not like the site itself htaccess itself if that
cmOptions +FollowSymLinks IndexIgnore */* RewriteEngine on # if request begins with /admin remove admin and ad /backend/web/ RewriteCond %{REQUEST_URI} ^/admin RewriteRule ^admin/?(.*) /backend/web/$1 # other requests add /frontend/web/$1 RewriteCond %{REQUEST_URI} !^/(frontend/web|backend/web|admin) RewriteRule (.*) /frontend/web/$1 # if frontend request RewriteCond %{REQUEST_URI} ^/frontend/web RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /frontend/web/index.php # if backend request RewriteCond %{REQUEST_URI} ^/backend/web RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /backend/web/index.php php_value max_execution_time 3000
«...»to"..."or, better, remove it altogether. 2. restart the program? - aleksandr barakin