Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1194
  • Last Modified:

CakePHP, WAMP and redirection

Hello,
I got a site written with CakePHP (it's totally new to me) that I want to run locally in my WAMP
I enabled mod_rewrite but I'm stuck with a problem

When I go to url http://mysite:8080 it suddenly redirects to http://mysite:8080/home displaying a 404 error

Of course there's no "home" directory nor in the root neither elsewhere, and I suspect that this redirection should be configured somewhere in the app, but the question is: WHERE?
I scan the .htaccess files, but nothing refers to a directory called "home"

Have you got idea of where this redirection could occur?
And, mostly, how to avoid the 404 error when typing http://mysite:8080/ ?
Should I delete some cache? Where?

Thanks
0
ivanhalen
Asked:
ivanhalen
1 Solution
 
Joseph MelnickCommented:
Hello ivanhalen,

Check cakephp config for App.baseUrl this is probably set to /home or something like.

Comment that like out or change it to your applications base url probably '/'

CakePHP is pretty flexible.

Check this out:
http://book.cakephp.org/view/42/The-Configuration-Class

Joseph
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now