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

  • SEARCH
  • Home
  • 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 7969757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:17:14+00:00 2026-06-04T07:17:14+00:00

I am having a problem loading a javascript or css or any other file

  • 0

I am having a problem loading a javascript or css or any other file from inside the application/modules directory.

I am using MAMP and CodeIgniter with HMVC and trying to have a js and css folders inside a module folder. Then when I am calling the controller methods I am also loading the asset files.

I have other sites that are working in that way. The structures are the same and the CodeIgniter versions are the same. Basically I have copied the previous website and started from there.

But it always returns 403 forbidden.

What I did but still nothing changes:

  1. the whole site directory is writable and readable.
  2. I can create and read new files from PHP to that dir
  3. I have htaccess file which I tried to remove or change
  4. Reinstalled MAMP
  5. Tried to open a simple html file
  6. The MAMP user and group has full access to the dir
  7. I tried to run the website on another server

The apache log says “[Tue May 22 17:24:30 2012] [error] [client 127.0.0.1] client denied by server configuration”

Here is the .htaccess file:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

At the same time everything is fine with the other site.

I have spent many hours so far and I am stuck.

Any thoughts or suggestions are appreciated.

Thanks,

  • 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-06-04T07:17:14+00:00Added an answer on June 4, 2026 at 7:17 am

    CodeIgniter comes with a .htaccess in the /application directory which contains

    Deny from all
    

    You’ll need to remove this file or change it’s ruleset to access js/css files etc from anywhere inside application/*

    It is however largely inadvisable to allow access entirely to the application, it’s perhaps best to modify this .htaccess file to allow access to application/modules/*/css|js/

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

Sidebar

Related Questions

I'm having a problem loading a PHP file using .get (even used .load) with
I'm having a problem with loading external pages into a DIV using jQuery. I
I am having a problem getting the javascript code to work inside an AJAX
I'm having a problem with the loaded() function of the Kohana ORM. I'm loading
I am having problem in getting reference of Ajax control extender using $find() or
I'm having problem restricting a query in mdx, using except function at where clause.
I am having problem getting my tooltip to work when using the jQuery load()
I am having some strange problems loading content from another XHTML page via jQuery.
I'm loading in an XML file in JavaScript, and once I've done that, I'm
I'm having an issue with using AJAX in MVC3. The problem is as I'm

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.