I have followed answer described in this question. I have moved Application files and folder to one level up as suggested.
public_html/basic/web,config etc..
to public_html/web,config etc..
Removed index.php from url by modifying these configuration:
config/web.php
'urlManager' =>[
'enablePrettyUrl' => true,
'showScriptName' => false,
],
htaccess file in web folder
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
So now my url is example.com/web/controller/action
How can I hide web from the url above? I don't have access to the apache configuration file.