I mainly make Django sites these days but I've just had to use a CMS
package in PHP that relies on a .htaccess for "clean" URLs. Now I know
they're apache-specific, so I've been trying to use Cherokee's rules to
replicate the .htaccess rewrite.

The rewrite is basically: If the file doesn't exist, chuck the request
to index.php

I've got it mostly working with 3 rules:

     1. Extensions (jpg, png, gif, css, js, html) => Static content
     2. Extensions (php) => FastCGI
     3. Default => Redirection ("(.*)" to "/index.php$1")

This works excellently for deep pages (eg /page/) but for some reason
the PHP is throwing a 404 at the root page /

It must still be going through the rewrite (because it's definitely an
error from the CMS) but why wouldn't it know the path?

I'm going to do some investigating now but I wondered if anybody else
had done some .*=>PHP rewriting before and had seen and fixed this
before?

Oli


_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to