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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:58:54+00:00 2026-05-26T15:58:54+00:00

I have installed CakePHP in my test server and it is working fine. When

  • 0

I have installed CakePHP in my test server and it is working fine. When I moved the site to production server the site is not working. In routes.php I have this code

Router::connect('/', array('controller' => 'occasions', 'action' => 'index'));

It is loading when there is no controller name and action name in the url. If I add the contoller name and action name in url the page giving an 404 error, i.e. www.server.com/mycake is working fine,
but www.server.com/mycake/occasions/index giving 404 error. The mod_rewrite is on in the server. And also the js and css are not loading with this code:

echo $html->css(array('style'));
echo $javascript->link(array('common_functions','jquery.min'));
  • 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-26T15:58:55+00:00Added an answer on May 26, 2026 at 3:58 pm

    It sounds like your rewriting isn’t working properly.

    /mycake will work fine because apache will redirect an base dir url to index.php, but url rewriting isn’t working.

    Maybe (just a guess) you need to include RewriteBase /mycake or similar for it to work properly.

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

Sidebar

Related Questions

I have installed RockMongo http://code.google.com/p/rock-php/ to manage my mongoDB database. This is installed in
I have installed php successfully on a Windows 7 machine but I can not
I have my cakephp 1.3 console installed on hostgator server using SSH. I baked
I have a site (built on LAMP (cakephp) and has ssl certificate installed) which
My css file is not loading. I have just installed apache2 with php on
At work, I am working with this old legacy code modified Cake-PHP code that
I have cakephp installed in the root directory. site.com/ i want to install wordpress
I have just successfully installed CakePHP and I see that I can edit the
I have installed and setup RubyCAS-Server and RubyCAS-Client on my machine. Login works perfectly
I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages.

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.