Reputation: 13545
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
Here is the htaccess file (but i doubt is it the root cause)
When I try to access the css file , it show 404 (Not Found) (The codeigniter 404 page, not the server 404) , so I suspect it is setting problem , but in fact , all the css and js in includes/header.php can import, the only problem is those fonts file(I am using bootstrap)
So, all font files like assets/css/fonts/glyphicons-halflings-regular.woff
shows 404, how to fix it? sorry for my bad english, thanks for helping.
Upvotes: 0
Views: 2481
Reputation: 486
Try this htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Are you sure you include your files correctly ? Example:
<?php echo base_url('/assets/css/fonts/glyphicons-halflings-regular.woff');?>
Have you check the permissions of your woff file ?
Upvotes: 4