Изображения и CSS не отображаются в codeigniter (wamp)

Я новичок в этом, так что, пожалуйста, потерпите меня. Я пытаюсь загрузить некоторые страницы через просмотр в коде воспламенителя WAMP (localhost), Почему-то мои css и изображения не отображаются. Большая часть того, что я вижу в Интернете, похоже, связана с проблемой htaccess. Итак, вот оно:

# Begin cache control #
ExpiresActive on
ExpiresActive off
<FilesMatch ".*">
Header unset Cache-Control
Header unset Expires
Header unset Last-Modified
FileETag None
Header unset Pragma
</FilesMatch>
# End cache control #
# Begin password protection #
#AuthName "Password Protected"#Require valid-user
#AuthUserFile "/home/users/web/b1167/ipg.konec5/.htpasswd"#AuthType basic
# End password protection #<IfModule mod_rewrite.c>
RewriteEngine On
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the
robots.txt file
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

#DirectoryIndex index.php

ЗДЕСЬ СНАП СЪЕМКИ ФАЙЛА С ВИДОМ:

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php echo link_tag('stylesheets/about.css'); ?><div id="team-group"> <img class="img-thumbnail" width="154" height="86"src="<?= base_url('/images/Erickson.png') ?>" data-toggle="tooltip"title="Erickson Joseph: Web Developper & Co-Founder" >
<br>

</div>

ЗДЕСЬ КОНТРОЛЛЕР ДЛЯ «ОКОЛО» PAGE:

    <?php defined('BASEPATH') OR exit('No direct script access allowed');

class About extends CI_Controller {public function index()
{$this->load->helper('html');
$this->load->view('templates/header');
$this->load->view('about');
$this->load->view('templates/footer');
}

}

Надеюсь, здесь достаточно информации, которая может показать, что я делаю не так? Пожалуйста, дайте мне знать.

Спасибо за любой вклад.

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector