Site does not pull local style settings

Asked

Viewed 147 times

1

I use codeigniter in my application.

The localhost works perfectly. I use a folder Assets outside the Application, where it contains all my files.

the code I pull is this:

<link href="<?php echo base_url(); ?>assets/css/bootstrap/bootstrap.css?>" 
   rel="stylesheet" type="text/css"> 

or

 <script src="<?php echo base_url(); ?>assets/js/bootstrap.js?>"></script>

When I go up in my hosting, the guides work(links and etc) but the styles don’t come.. There’s something wrong with my code?

  • You are closing the php tag 2 times.

  • fixed the php tags.. <link href="<? php echo base_url("./Assets/css/bootstrap/bootstrap.css"); ? >" rel="stylesheet" type="text/css"> but still doesn’t pull the Assets, I’m trying in every way ! :(

1 answer

0


Make sure your base_url is pointing the right way when you moved up your hosting. No config.php in application/config:

$config['base_url'] = 'http://www.suahospedagem.com'

Also check the redirect via your htaccess file

Browser other questions tagged

You are not signed in. Login or sign up in order to post.