My Yii2 application does not work well when I upload it to the server

0

It happens that when I uploaded my Yii2 application to the server, it only opens the home page, when I want to access the other pages, it shows me an error that the requested page does not exist

I use friendly URLs, which work well on localhost, on my PC where I am designing it

What do you have to configure in the server so that the application works with friendly urls? Or where should we look for the cause of the problem?

Note: I can manage the web server, so any configuration I can do it

    
asked by José A. Cáceres 13.12.2017 в 16:35
source

3 answers

0

Well, I already found the solution, activating the rewrite mode in Apache

Change AllowOverride none to AllowOverride All

Thank you very much Sr1871 for the help

    
answered by 13.12.2017 в 23:15
0

If you have similar href with the word index.php you should delete the part that says index.php example

href = 'index.php? r = rooted'

you must correct it like this

href = '? r = rooted'

and everything will work correctly

    
answered by 26.02.2018 в 22:50
0

Regarding the error of the formatter that commented (Class yii \ i18n \ formatter does not exist). The problem is that linux is case sensitive with the names, the solution was to change the reference of the formatter class by Formatter, with initial capital letter

    
answered by 01.03.2018 в 14:22