Hi,

I've been trying to use Redirection Handler with a local install of Concrete5 
CMS (concrete5.org), which is a great CMS btw ;-)

The rule is a very simple one, main to remove the index.php from the URL.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /awqaf/

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

I used cherokee-admin and did the following steps:
1. Edit the default virtual host
2. Add a new 'directory' rule with the value /awqaf
3. Used the Redirection Handler
4. In the Rule List I have:
    + Type: Internal
    + Regular Expression: (\.+)$
    + Substitution: index.php/$1/

Saved and restarted, and now I get a 500 Internal Server Error. Here is the 
config file lines:

vserver!10!nick = default
vserver!10!rule!700!encoder!deflate = 0
vserver!10!rule!700!encoder!gzip = 0
vserver!10!rule!700!handler = redir
vserver!10!rule!700!handler!rewrite!1!regex = (\.+)$
vserver!10!rule!700!handler!rewrite!1!show = 0
vserver!10!rule!700!handler!rewrite!1!substring = index.php/$1/
vserver!10!rule!700!match = directory
vserver!10!rule!700!match!directory = /awqaf
vserver!10!rule!700!no_log = 0
vserver!10!rule!700!only_secure = 0

Using Cherokee 0.99.22 on Debian Squeeze (testing). I tested this with 0.99.24 
without success.

The documentation example really isn't clear at all.


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

Reply via email to