PrettyURLs and cherokee webserver

Pandos

  • Living on the edge of Wedge
  • Posts: 635
PrettyURLs and cherokee webserver
« on November 19th, 2012, 06:15 PM »Last edited on November 20th, 2012, 04:28 PM
This will be the default setup to make cherokee work with PrettyURLs in wedge.


Step one:


Go to cherokee admin and select the desired server.


Step two:

Change Handler of default from List&Send to redirect.


Step three:

Switch to Handler and choose Redirection as the desired handler.
Click on "Add new RegEx".
Choose "Internal" and type as Regular Expression:
Code: [Select]
^/(.+)
Type as Substitution:
Code: [Select]
/index.php





Step four:


Click on Behavior + and add a behavior rule:
File Exists



Switch to Handler and make List & Send as default handler for this rule.
Move this new rule directly over Default.





Step five:


Click "SAVE" and restart cherokee.

Please make sure that PHP is always on top and it's status is "NON FINAL"


# dpkg-reconfigure brain
error: brain is not installed or configured