Welcome Guest, Not a member yet? Register   Sign In
setting the base_url()
#1

(This post was last modified: 08-30-2021, 10:41 PM by richb201.)

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
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB