I just installed yii2 basic project, i would like to remove/hide the web part from the url.
I put index.php outside the web folder i changed the include’s path in index.php, everythings works well, but unfortonetly the application can not include the site.css from web folder, i got 404 error.
I don’t know where can i change or modify the $this>head() function’s logic.
Without any modification the path of site.css is following: <link href="/cr/web/css/site.css" rel="stylesheet">
When i put index.php outside the web folder the site.css’s path is: <link href="/cr/css/site.css" rel=“stylesheet”>
but the css file is under /cr/web/css/site.css
I am sorry for my English.