Assuming you are using Apache 2.2:

In apache.conf

uncomment this line:
LoadModule rewrite_module modules/mod_rewrite.so

This will enable mod_rewrite

You then need to allow cakephp .htaccess file to take over control of
your webroot:

In your <Directory> section for your webroot folder (mine is c:
\htdocs):

<Directory "C:/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options
All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please
see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed
in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

Hope this helps :-)

On Jul 17, 8:53 am, Russell <[EMAIL PROTECTED]> wrote:
> Hello,
> I m very new & struggling with cake 1.2. Now I've 2 problems.
>
> 1)  I m using wamp server in local host. After install cake1.2 in
> localhost, I m not getting cake default page (I mean with some color &
> css etc), but I can get my page after routing from route.php file.
> Perhaps mod_rewrite is not enable in my httpd.conf file, In there on
> ly lines exist:
>
> LoadModule rewrite_module modules/mod_rewrite.so
> #AddModule mod_rewrite.c
> But, how can I enable mod_rewrite?
>
> 2)  I m working with my own index page, where I started a simple blog.
> I create a link nameed "add" & create   add.thtml page. but, I m
> getting the "page can not found error 404" after clicking the link!!!
>
> But it's working with cake 1.19...
> So, wheres the problem with cake1.2???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to