Solved

CakePHP, WAMP and redirection

Posted on 2010-11-10
1
1,192 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 500 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

627 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