Answer the question
In order to leave comments, you need to log in
How to properly set up aliases in OpenServer, because the server crashes from 404?
Good day. I ran into the following problem: I'm developing a project on AI2 according to the advanced template and I use urlManager for CNC links. In the frontend / web, business / web, backend / web packs, I put .htaccess with the code:
AddDefaultCharset utf-8
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Answer the question
In order to leave comments, you need to log in
Read this article on the topic of deploying yii2 on OpenServer
You need to manually add the domain specifying the folder. It's done like this:
It is unlikely that the matter is in openserver, with htaccess everything is ok and without additional settings everything should work. Look at the server logs, where it really climbs. Have you started the server itself at all?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question