Where should static files such as pictures and js in codeigniter be placed in the project?

if you want to develop a ci project, where do you put static files such as pictures, js, css, etc.
what should I do with url when accessing pictures? For example, if you put it in the asset directory at the level of index.php, the url for accessing the image is: hostname/asset/img/temp.jpg, where the asset in url is unnecessary, how to avoid this ugly url?

Jun.22,2022

is best placed on cdn alone. Don't put it with the web program. If you do not want to put it together, you can use the htaccess file to modify the url redirection, or use nginx to configure a separate secondary directory to use.

Menu