I change from version 1.1 to 2 and i can not get pretty url working, here are my questions (for some of the questions i know the answer but i want to compare my actual understranding)
Im using Yii2 advance.
1- For enabling preatty url what its the file (path/file) that i have to modify, its frontend/config/main.php or frontend/config/main-local.php
2- One of my actuals url in my localhost server is localhost/webs/project/projectinyii/frontend/web/index.php?r=site%2Fcontact :
to acces this same page but with preatty url witch will be the new url (i know this one i just want to be shure).
If you want to hide index.php from your url you need to use .htaccess ( in case you are using apache )
Create .htaccess file inside frontened/web and backend/web folders and put this code in it:
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
If you are using Nginx I do not know what you have to do, read this it may help.