Rodolfo Pilas wrote:
> I have several wordpress served by cherokee
> http://www.codigolibre.net
>
> A couple of users ask me how to use permalinks
> http://codex.wordpress.org/Using_Permalinks
>
> I have just test at my own wordpress permalinks and wordpress
> created a .htaccess to apache as follows:
>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L]
>
> How I can creare equivalent rules to cherokee?
Many people have asked this question so far. Currently, Cherokee
doesn't support that sort of rewriting rules on purpose. Let me
explain the reason why we made that decision..
With the current scheme, Cherokee bases its decisions in the
information provided by:
- The request
- The configuration file
which means that, in the 90% of the cases, it doesn't need to look
at the file system in order to decide how to reply a request. The
advantage is easy to see; the file system access are time expensive
and we do want to avoid them to keep Cherokee speedy.
Well, that is the reasoning why we did it like that.. but I suppose
what you are actually looking for is the explanation of how to set
it up rather than that, so what I would do is either:
- Use the pathinfo scheme, with which you will have URLs like:
http://example.com/index.php/hello-world
- You could also set a fcgi module as default handler. Actually it
is a bit tricky, but it works. Check this out, it's a config
file I've written as example:
=========
Documentroot /var/www/wordpress/
Directory / {
Handler fcgi {
Server localhost:8002 {
Env PHP_FCGI_MAX_REQUESTS "-1"
Env PHP_FCGI_CHILDREN "5"
Interpreter "/usr/lib/cgi-bin/php -b 8002"
}
ScriptAlias /var/www/wordpress/index.php
}
}
Directory /wp-admin {
Handler fcgi { Server localhost:8002 }
}
Directory /wp-content {
Handler file
}
=========
> It is possible to convert .htaccess rewrite rules to cherokee
> sintax? Are these sintax equivalent?
No. The Cherokee and Apache bases are quite different, so I guess it
would be tough to write a tool like that.
--
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee