On Tue, Jan 11, 2011 at 1:01 PM, estherM <esthermst...@gmail.com> wrote:
>
> I'm using XAMPP on linux. I've found my httpd.conf file in opt/lampp/
> etc, but am not sure what I need to do with it. I've searched for
> "rewrite", and there's only one line:
>
> LoadModule rewrite_module modules/mod_rewrite.so
>
> There's nothing about AddModule mod_rewrite.c.

The documentation is outdated. AddModule is no longer used in Apache 2.x.

> Do I just create a Directory section for the directory I've installed
> Cake in and set AlllowOverride to All? (I created a separate
> subdirectory of my wwwroot and installed in there, since I also have
> installs of Joomla and CodeIgniter.) Is there anything else I need to
> do? My download of Cake did come with two htaccess-type files
> (._.htaccess and .htaccess) - do I need to do anything with them?

If you have access to apache's conf, you can disable htaccess
(AllowOverride None) for a little boost in speed by putting the
rewrite config in there. If you have separate virtual host configs for
your site(s) put this in the appropriate file instead.

<Directory "/path/to/your/app/webroot">
        Options None
        AllowOverride None
        Order allow,deny
        Allow from all
        
        DirectoryIndex index.php index.html

        <IfModule mod_rewrite.c>
                RewriteEngine On
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
        </IfModule>
</Directory>

With this config, all requests will be forwarded to webroot/index.php,
unless it's for an existing file or directory inside webroot (eg. your
css, js, or something else you include in there).

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to