I want to place all my static assets (js, css, etc) in a separate folder “public_html”. But of course I still want my url to be: http://www.domain.com instead of http://domain.com/public_html
This can be done with .htaccess I suppose but haven’t had any luck with it.
Also do I configure my base_url in codeigniter to be http://www.domain.com or http://www.domain.com/public_html
Thanks!
public_html is the folder on your server where you put your codeigniter files into. In your config file you set the base_url as be http://www.domain.com.
You can put the assets folder in the public_html folder and the url will still be http://www.domain.com.
Example file structure.