私はこのヘッダを私のheader.phpに持っています。私はここで正しい回答をすべてstackoverflowで見つけましたが、まだそれは私の仕事をしませんでした。誰もがplsを助けることができます。事前にありがとう:)cssファイルがcodeigniterに読み込まれませんか?
私のフォルダ構造は次のとおりです。
メインフォルダ: ci_attl - アプリケーション - CSS - style.cssに
<link href="<?php echo base_url();?>application/css/style.css" rel="stylesheet"> - not working
<link href="<?php echo base_url();?>/css/style.css" rel="stylesheet"> - not working
<link href="<?php echo base_url();?>../css/style.css" rel="stylesheet"> - not working
私autoload.php
$autoload['helper'] = array('form','url', 'html');
私の.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ci_attl/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
私のconfig.php
$config['base_url'] = '';
$config['index_page'] = '';
私のコンソールエラー
Failed to load resource: the server responded with a status of 403 (Forbidden)
http://[::1]/ci_attl/application/css/style.css
誰でも助けてくれますか?よろしくお願いします。 –