On Aug 16, 2006, at 4:39 PM, Llama Llama Llama wrote:

>
> I'm sure there is someone on here who can help me.  I am just getting
> my feet wet with CakePHP, and I've hit several roadblocks.  I know all
> of them have to do with mod_rewrite, but I don't know how to fix them.
>
> One of the big problems is that my server won't allow mod_rewrite  
> to be
> accessed from .htaccess files for security reasons.  I was told that
> the contents of the three .htaccess files need to be entered into a
> field on my web server admin labeled "additional apache directives."
> However, I can't seem to find the text of any of the .htaccess files,
> making it very hard to do that.

Kinda depends on where your document root is.

You don't have to use mod_rewrite: you can use Cake's built-in pretty  
URLs by modifying a few settings in /app/config/core.php. The URLs  
end up looking like:

http://example.com/index.php/posts/index

or

http://example.com/cake/index.php/posts/index

Rather that the mod_rewrite ones (which would look the same, minus  
the index.php).

> I know that there are ways to run CakePHP without using mod_rewrite,
> but I can't seem to get that to work either.  (I have un-commented the
> line in the core.php file, but I don't know what else needs to be
> done.)

Delete the .htaccess files, and access Cake using the naming I've  
specified above.

> What I am trying to do at this point is work through the SitePoint
> tutorial
> (http://www.sitepoint.com/article/application-development-cakephp).  I
> get the database to connect and all that fun stuff, but even when I
> just do the scaffolding, www.mydomain.com/notes gives me a 404 error.

Yeah, you might try

http://yourdomain.com/index.php/notes/

-- John



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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