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 8097001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:37:17+00:00 2026-06-05T21:37:17+00:00

My cakephp is not loading any css,js. i uncommented the line Configure::write(‘App.baseUrl’,env(‘SCRIPT_NAME’)); in core.php.

  • 0

My cakephp is not loading any css,js. i uncommented the line Configure::write(‘App.baseUrl’,env(‘SCRIPT_NAME’)); in core.php.
and now get all the css and js but I get missing controllers. I have to
put index.php in the url.
eg:-http://localhost/myapp/index.php/login
i enabled the mod_rewrite but still its not working

  • 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-05T21:37:19+00:00Added an answer on June 5, 2026 at 9:37 pm

    If you are NOT using mod_rewrite, then you must:

    A. Uncomment Configure::write(‘App.baseUrl’, env(‘SCRIPT_NAME’)); (which you said you’ve done)

    B. Remove or disable your 3 .htaccess files (you haven’t mentioned doing this…)

    /.htaccess

    /app/.htaccess

    /app/webroot/.htaccess

    Don’t delete the files, just rename them to eg. .htaccessXXX so you can easily re-enable them later.
    Also remember .htaccess are hidden files – so Google “how to show hidden files” if you can’t already see them in your file browser.

    C. You must include index.php in all your URLs. Eg. http://www.example.com/index.php/my_controller/my_action

    Did you remember to do step 2 – disable your .htaccess files?

    And remember that if you want to re-enable mod_rewrite again, then you must undo ALL the above three things, ie, comment out Configure::write(‘App.baseUrl’, env(‘SCRIPT_NAME’));, enable all 3 .htaccess files, and no longer include /index.php in your URLs.

    But the biggest question here is, are you really using Cakephp 1.2? This question has been tagged CakePHP 1.2 – but Version 2.1 is out now, so you should probably be using that.

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

Sidebar

Related Questions

CakePHP problems by not getting the _schema my model in cakephp: <?php App::uses('AppModel', 'Model');
Problem is about CakePhp. If I give permission to required directories CSS does not
My css file is not loading. I have just installed apache2 with php on
If we deploy cakephp not on root domain, but under something like http://domain.com/folder/app-name as
I'm having a problem with CakePHP. My application is not echoing out any non-English
Im trying to run a shell with cakephp but I'm not able to do
I find that the validation rule 'inList' in cakephp 1.3.10 is not working properly.
Please bear with me, as I'm a programming/cakephp noob, but I do not know
I'm using CakePHP 2.0, and tries to configure it to store sessions in a
I am learning the locale function in Cakephp. I am not sure how to

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.