Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1019469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:01:04+00:00 2026-05-16T11:01:04+00:00

I am creating a modular CMS using the codeigniter framework, the main asset directory

  • 0

I am creating a modular CMS using the codeigniter framework, the main asset directory is:

/public/assets/[admin|public]/[css|images|js]

my current htaccess routes everything except requests starting with ‘public’ to the index.php file.

The new module system allows each module to have its own assets which would be located at

application/modules/*SOME_MODULE*/assets/[admin|public]/[css|images|js]

my question is, is it possible to create a rule to stop anything from a modules asset directory being routed to index.php?

My Current .httacces is:

RewriteEngine on

RewriteCond $1 !^(index\.php|images|robots\.txt|public/*)
RewriteRule ^(.*)$ /CI-Playground/index.php/$1 [L]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:01:05+00:00Added an answer on May 16, 2026 at 11:01 am

    Assuming your URLs would be the full path to the modules’ various assets directories, you could easily exclude them from being rewritten:

    RewriteEngine on
    
    RewriteCond $0 !^(index\.php|images|robots\.txt|public/)
    RewriteCond $0 !^application/modules/[^/]+/assets/(admin|public)/(css|images|js)
    RewriteRule ^.*$ /CI-Playground/index.php/$1 [L]
    

    You might like to cut out the application/modules part to make your request path shorter and your directory structure less exposed, which you could do like this:

    RewriteEngine on
    
    RewriteCond $0 !^(index\.php|images|robots\.txt|public/)
    RewriteCond $0 !^[^/]+/assets/(admin|public)/(css|images|js)
    RewriteRule ^.*$ /CI-Playground/index.php/$0 [L]
    
    RewriteRule ^[^/]+/assets/(admin|public)/(css|images|js).*$ application/modules/$0
    

    I see that you have another .htaccess in your application directory though, which you’ll need to check for anything that might prevent outside requests from reaching the modules’ files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering what the opposing framework in Java would be for creating modular GUI
I am creating a modular ASP.NET MVC application using areas. In short, I have
Creating sprite sheets aka texture atlases rather than using many hundres of individual images
Creating a website using simple html(not html5) and css but got stock in mouseover
Creating a simple RPG game, first time using XNA. Trying to get my character
I have problem in creating modular analysis architecture for C# application. Aim: It is
Creating a table without tbody using javascript createElement/appendChild will not add tbody in Firebug
Creating the closure is easy but using it is confusing for me. Here is
Creating a searchable contacts kind of app. Below is my code public class EmployeeList
Creating MVC3 Razor Helper like Helper.BeginForm() says that it can be done using extension

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.