I'm tryng to translate WP Supercache's htaccess rules for Cherookee but I've
some problems because I don't know how I can replace some RewriteCond
variables (for example REQUEST_METHOD, HTTP:Cookie, HTTP_USER_AGENT) etc in
Cherokee-Admin

Could anyone help me to understand I could make this translation?

These are my http rules

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\
MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\
Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\
Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\
OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\
CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\
Obigo|LGE\ VX|webOS|Nokia5800).*
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/home/.kirkwood/davidesalerno/
davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz-f
RewriteRule ^(.*) /home/.kirkwood/davidesalerno/
davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz[L]

RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\
MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\
Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\
Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\
OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\
CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\
Obigo|LGE\ VX|webOS|Nokia5800).*
RewriteCond %{DOCUMENT_ROOT}/home/.kirkwood/davidesalerno/
davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) /home/.kirkwood/davidesalerno/
davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
</IfModule>

Thank you so much in advance,
Davide
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to