CodeIgniter Forums

Full Version: How route css or font files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I download a template html and try use this html in my project Codeigniter
When i open site,the fonts cannot load
But when i add url to start of fonts manually,fonts are loading and it is OK
Why?
How do i can load fonts without add url in fonts url?
When url is http://[::1] fonts not load but when url is localhost,there is no problem
Why?
You haven't set your base_url in your application/config/config.php
Specify a base URL for all relative URLs on a page:


Code:
<head>
  <base href="<?= base_url();?>">
</head>