M
M
marq2021-10-01 14:59:06
PHP
marq, 2021-10-01 14:59:06

How to make it on yii2 to immediately go to index.php?

How to set up Yii2 so that when opening a project, it immediately switches to index.php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
XyRmaT, 2021-10-03
@XyRmaT

Create a .htaccess file in the root of the application (if it doesn't exist) and add the following line
DirectoryIndex (file name)
Example:
DirectoryIndex index.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question