I am using basic template of yii2.0.3 on a nginx server and have a demo theme under web/theme/demo.
I have config the web.php as below for the theme.
'components' => [
'view' => [
'theme' => [
'pathMap' => ['@app/views' => 'theme/demo'],
'baseUrl' => 'theme/demo'
]
],
Everything is working fine.I want to remove the web/index.php from the url of the home page as well as from other pages too. As nginx does not support .htaccess i have put simple the below rules on the web.php file
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => false,
'rules' => [],
],
I have not put anything inside 'rules'..so clean url may not working properly. Please help me to remove /web/ from each page of the template.