Solved

CakePHP, WAMP and redirection

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This article discusses how to create an extensible mechanism for linked drop downs.
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

776 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