WebFaction
Community site: login faq

I just installed CakePHP 1.3.12 as a PHP 5.3 application. The application is called contactmanager.

When i go to the url i get a 404 Page not found and this error message: The requested URL /home/myusername/webapps/contactmanager/app/webroot/ was not found on this server.

Anyone have any idea's on how i can fix this? Thanks

asked 10 Oct '11, 11:25

ckooiker
536
accept rate: 0%


This error usually happens when you don't have the RewriteBase directive in your app's .htaccess file.

For example, if you're running your app on "http://mydomain.com/contactmanager" then you need to edit /home/myusername/webapps/contactmanager/.htaccess so that it looks like this:

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase    /contactmanager
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

Hope that helps!

permanent link

answered 10 Oct '11, 14:04

seanf
12.2k41836
accept rate: 37%

Yes that worked, Thanks!

(10 Oct '11, 15:15) ckooiker
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×22
×7

question asked: 10 Oct '11, 11:25

question was seen: 3,705 times

last updated: 10 Oct '11, 15:15

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM