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

Ask A Question

Stats

  • Questions 538k
  • Answers 538k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Although it may be small, it could be good practice… May 17, 2026 at 2:05 am
  • Editorial Team
    Editorial Team added an answer [browser searchForServicesOfType:@"_mjdj._tcp.local." inDomain:@""]; That's your error. You want [browser searchForServicesOfType:@"_mjdj._tcp."… May 17, 2026 at 2:05 am
  • Editorial Team
    Editorial Team added an answer Is there any reason you don't use the XML feeds?… May 17, 2026 at 2:05 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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 a website using simple html(not html5) and css but got stock in mouseover
I am trying to generate struts 2 modular archetype using maven but always getting
Creating a simple public/private keypair, such as through ssh-keygen does not create a file
Creating a document fragment using plain Javascript is dead simple: var docFragment = document.createDocumentFragment();
I have a modular Dynamic Web Project in Eclipse. When I try to publish
I am creating a network chat client in C# as a side project. In
I am creating a table to summarize data that is gathered from about 8
I'm about to start writing a GUI for a modular synthesis app (like Alsa

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.