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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:04:45+00:00 2026-05-18T08:04:45+00:00

If we deploy cakephp not on root domain, but under something like http://domain.com/folder/app-name as

  • 0

If we deploy cakephp not on root domain, but under something like

http://domain.com/folder/app-name as the root domain for cake

When we use something like $this->Form->create(‘abc’)

it will generate post url to http://domain.com/controller/action instead of http://domain.com/folder/app-name/controller/action

how do we configure cake for this purpose?

  • 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-18T08:04:46+00:00Added an answer on May 18, 2026 at 8:04 am

    No, it won’t. It always picks it up correctly. Are you sure this is happening? Because on all my CakePHP installations it works correctly. That’s the whole point of using the Form helper and HTML helper, they’ll get the path right irrespective of where you deploy it.

    When you’re using jquery stuff, one way to solve it is to the below code to generate URL instead of hard coding them.

    <?php echo $html->url('controller' => 'foo', 'action' => 'bar'); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to deploy my test GWT app with Eclipse Indigo 3.7 but I
http://dev.sencha.com/deploy/dev/examples/button/buttons.html I saw this and was wondering if I have access to these kind
I'm not very familiar with cake.. So here's my questions.. we're developing an app
When I deploy to tomcat, I can edit the JAVA_OPTS to something like: export
I am trying to deploy my MVC app, but in the TFS build I
I need to deploy an application on the WAS ND 6.1 and do not
I'm preparing to deploy my Django app and I noticed that when I change
I'm getting ready to deploy a CakePHP site for the first time. I'm using
When you deploy a web app (servlets) with embedded jetty, do you still need
After deploy on heroku cedar, images desapear. I've a CSS like : :css /*

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.