Answer the question
In order to leave comments, you need to log in
Why doesn't yii2 run like this on hosting?
transferred the site to the hosting, connected the database, gave the rights to the assets daddy, but the site does not work at all: even the debugger is not displayed to see what's wrong.
On LAN, it is requested like this:
On hosting 404:
Can anyone tell me what's the matter here?
.htaccess at the root:
RewriteEngine on
RewriteRule ^(.+)?$ /web/$1
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Answer the question
In order to leave comments, you need to log in
If I were paid every time I see a similar question here - I would not work.
Your hoster gives you a configured domain for some folder like public_html. In this folder you should place the contents of your web folder. And the rest of the folders are on the same level as the public_html folder. And .htaccess should only be in the web folder.
So the contents of your directory will look like this:
...
controllers
models
...
public_html
...
vendor
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question