Welcome Guest, Not a member yet? Register   Sign In
Stop Routing Assets Folder

Hello all,
I have CI 4.2.9 installed on Dreamhost.  I have the following structure:

In this top level folder, I also have the following .htaccess file:

# Customized error messages.
ErrorDocument 404 public/index.php

# Set the default handler.
DirectoryIndex public/index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ public/index.php?/$1 [L,QSA]

Under my public file I put an assets folder with my css and js files.  I think include them in my view files like:
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css" />

But they aren't loading and when I click on the file directly from the source code generated, I get:

Can't find a route for 'get: assets/css/style.bundle.css'.
How can I tell CI to stop routing the assets folder?

Thank you!

Theme © iAndrew 2016 - Forum software by © MyBB