Title: codeigniter glyphicons showing in blocks
Tags: codeigniter;glyphicons
Question: I'm setting up CodeIgniter with bootstrap but when I'm trying to add a glyphicon icon then it's showing up as a block instead of the icon. I've linked bootstrap with
<link href="<?php echo base_url();?&gt;bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"&gt;
but its not working properly. everything is working so far only the glyphicons not. Does it have something to do with my htaccess file or... ?
RewriteEngine on
RewriteCond $1 !^(index\.php|images|assets|bootstrap|design|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
I hope someone can help me out, Sincerely Dennis
Comment: Can you show some code please? HTML and CSS, just regarding the glyphicon.
BTW your htaccess looks fine no worries about that.


Here is another answer: You need to set base_url in application/config/config.php file.
Ex: $config['base_url'] = 'url_of_your_site';
Comment for this answer: This could be the cause... One of the first things you should do is view the page source in your browser and ensure the links being generated are correct which would show this up.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:11/18/16', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<codeigniter><glyphicons>', 'Title': 'codeigniter glyphicons showing in blocks', 'ViewCount': 1186, 'id': 40684905, 'user_AboutMe': None, 'user_AccountId': 7788760.0, 'user_DisplayName': 'dennis', 'user_Reputation': 39.0, 'user_Views': 9.0, 'user_id': 5892558.0}}