Answer the question
In order to leave comments, you need to log in
Why does the server get a 404 error?
Good day! I am making a site on yii2 and when transferred to the besthosting.ua server, it does not work. At first, the version of php from 5.4 to 5.3 always fell there and htaccess did not work, the redirect to the web folder did not work. They gave me the web folder in their documentRoot. I removed the .htaccess file from the site root. The only thing left is the .htaccess file in the web folder:
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteBase /home/goldhous/domains/goldhouse.com.ua/public_html/web
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question