Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to move my site from Apache to Cherokee. The install and basic configuration went very smoothly. However, I am having some difficulty with the URL rewriting configuration.

For example, in my current Apache .htaccess file I have the following:

RewriteRule ^index.html/([a-zA-Z0-9_-]+)$ /index.php?language=$1

Which I add to the Default Rule Redirection Handler in Cherokee as follows:

Regular Expression: ^index.html/([a-zA-Z0-9_-]+)$
Substitution: /index.php?language=$1

When I make a GET request from the browser the response is a 500 error. There is nothing that helps me in the Cherokee logs either (the message is 'The issue seems to be related to your system.').

If anyone has any experience with this please can you share with me? Once I get round this problem I will be clear to update my production environment with Cherokee.

Many thanks in advance.


share|improve this question
I managed to get this working by brushing up on my regex... – jensendarren Apr 4 '11 at 14:07

This worked in my default rule handler:

  regex = ([^/]+)
  substring = /index.php?language=$1
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.