Because WAMP ships with mod_rewrite disabled this is becoming a real
FAQ for new users.
What about making a small change to the trunk .htaccess to include
something like the following:
<IfModule !mod_rewrite.c>
SetEnv CAKEPHP_NOMODREWRITE 1
</IfModule>
and then in core.php doing something like:
if(env('CAKEPHP_NOMODREWRITE')) {
define ('BASE_URL', env('SCRIPT_NAME'));
}
This would basically make the cake pretty url's on by default and save
people having this problem (and having to answer it all the time).
Thoughts?
j.
On 6/9/06, AD7six <[EMAIL PROTECTED]> wrote:
>
> Hi TheMaab,
>
> You need to enable Mod_rewrite (windows with apache has no problems
> using mod_rewrite) OR change your config to use cake pretty urls. At
> the moment you are using mod_rewrite urls (which is the default)
> without mod_rewrite enabled, which isn´t going to work.
>
> To enable mod_rewrite you need to make some changes to your httpd.conf,
> and ensure that the .htaccess files are in place. here's a url that´s
> useful for just about any problem:
> http://www.cakephp.org/search/index/mod_rewrite. Be wary of accepting
> info in the wiki as gospel (it´s primarily user written), the manual
> is where the most accurate info is to be found.
>
> I´m sure that you´ll find the solution in either the manual or the
> wiki or the google group (as it's a pretty common topic to have been
> discussed ;) )
>
> Cheers,
>
> AD7six
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---