I'm setting up cake for the first time, and trying to follow the blog
tutorial, but I can't get URL rewriting to work.

I had just finished the part where I created index.ctp in the Posts
directory under app/View when I figured out that it's not correctly
set up.

System info:

OS: Centos 6.2 x86_64
Server: Apache/2.2.15 (Unix)
Database: mysql
Cake version 2.0.5 installed from GIT

The server is here in front of me (not GoDaddy or 1and1).

Error given:

URL rewriting is not properly configured on your server. 1) Help me
configure it 2) I don't / can't use URL rewriting

When I go to http://localhost/Posts/index, I get a 404 Not Found
error.  The default page does not have css applied.

Stuff I've tried:

When looking at the "Help me configure it" page, and from reading the
blog tutorial, I set the following in httpd.conf:
<Directory path/to/cake/>
Options FollowSymLinks
AllowOverride All
</Directory>

as well as a few things I found from googling around, such as setting
AllowOverride to "AllowOverride AuthConfig Indexes Limit All".

I checked the file, and see a line which says, "LoadModule
rewrite_module modules/mod_rewrite.so" which was automatically
installed.

>From step 3 in the advanced installation section, all of the .htaccess
files appear to have the settings recommended.

This server has no virtual hosts.


If anybody knows what I might be missing, please let me know.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to