Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CakePHP, WAMP and redirection

Posted on 2010-11-10
1
Medium Priority
?
1,193 Views
Last Modified: 2013-11-10
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
Comment
Question by:ivanhalen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
Joseph Melnick earned 2000 total points
ID: 34138626
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question