Welcome Guest, Not a member yet? Register   Sign In
HELP: Cherokee Webserver and Mod_Rewrite setup
#1

[eluser]joneslee[/eluser]
It'd be great if someone here can share insight on how to setup mod_rewrite rule under Cherokee to make CodeIgniter run nicely.

Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-
RewriteRule ^(.*)$ index.php/$1 [L]
Options All -Indexes

I am running Cherokee 0.11.6 btw.
#2

[eluser]Phil Sturgeon[/eluser]
Cherokee should support mod_rewrite, but has to be enabled on the administration web GUI. Apparently the link is found under "SEO settings".
#3

[eluser]joneslee[/eluser]
There is little info on how to write rewrite rule with Cherokee SEO. Can you please tell me in detail how to create such rule?
#4

[eluser]Phil Sturgeon[/eluser]
Seems you have no equivalent of mod_rewrites conditions, but you can do it by picking specific folders to NOT redirect, then redirecting everything else.

Wordpress and url rewrite (in Cherokee)

This is more of a general Cherokee question than a CodeIgniter one though, you may have more luck posting on their Google group as well.
#5

[eluser]Ivan A. Zenteno[/eluser]
Hi sorry for loooong delay xDD

But in the Cherokee version 0.99.20 in the cherokee-admin, try this:
In the default rule change List & Send to Redirection add Interval regex ^(.*)$ and subtitution /index.php/$1
add new rule to /application to Directory and set handler List & Send
add another new rule /system to Directory and set handler List & Send

Remember Add rule with Fastcgi of PHP if You uses FastCGI.

Best regards




Theme © iAndrew 2016 - Forum software by © MyBB