setting the base_url() |
I am moving my app from my laptop to my remote server but it seems that the directories are not working. This is an example of an image that is not being found.
<img src="<?php echo base_url(); ?>assets/themes/default/images/Logo - Research Study Online-01.jpg" style="float:left;margin-top:5px;z-index:5" alt="logo"/> On localhost I used: $config['base_url'] = 'http://localhost'; and that worked fine. but on the remote server I use: $config['base_url'] = 'http://www.researchstudyonline'; The actual path to the image on the remote server (according to FileZilla) is sftp://[email protected]/home/ubuntu/rst/RST/app/assets/themes/default/images/rsz_logo_-_research_study_online-01.jpg What should I set base_url to allow the code to run on the remote server? How do I know what actual dir the www.researchstudyonline URL is pointing at on the remote server?
proof that an old dog can learn new tricks
|
Messages In This Thread |
setting the base_url() - by richb201 - 08-30-2021, 10:33 PM
RE: setting the base_url() - by captain-sensible - 08-31-2021, 06:03 AM
RE: setting the base_url() - by richb201 - 08-31-2021, 01:21 PM
|