I'm working through my first Codeigniter webpage, and I've run into a few peculiarities. The first is that I haven't needed to use base_url or site_url in front of my URLs to get them to work, at least not originally. I set up the main page, and simply did
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
and this seemed to automatically add the domain name in front of it. I'm not sure how it worked, but it works for all the URLs like it. When I look at the inspect window, it shows like this. I don't know if this is relevant, but I wanted to make note of it.
Here is my .htaccess folder:
RewriteEngine On RewriteBase /eventCentral/ RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d #RewriteCond $1 !^(index\.php|assets) RewriteRule ^ index.php [QSA,L]
I tried removing the commented piece of code completely, but it still didn't fix it.
My file structure is also correct, and can be seen here.
As I said, I'm still very new to code igniter, so if answers can be broken down Barney style, I'd appreciate it. I've also tried looking through a number of stack overflow questions that seemed relevant, and I still haven't found a solution that works.