[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cherokee
Subject:    [Cherokee] Cherokee and WP Supercache
From:       Davide Salerno 2 <davidesalerno.net () gmail ! com>
Date:       2010-02-28 9:24:18
Message-ID: 490ecd1b1002280124q71d3463dr725f3c0d6747a4e4 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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|Eudor \
aWeb|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|Eudor \
aWeb|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


[Attachment #5 (text/html)]

<div>I&#39;m tryng to translate WP Supercache&#39;s htaccess rules for Cherookee but \
I&#39;ve some problems because I don&#39;t know how I can replace some RewriteCond \
variables (for example REQUEST_METHOD, HTTP:Cookie, HTTP_USER_AGENT) etc in \
Cherokee-Admin<br> </div><div><br></div><div>Could anyone help me to understand I \
could make this translation?</div><div><br></div><div>These are my http \
rules</div><div><br></div><div>&lt;IfModule mod_rewrite.c&gt;<br>RewriteEngine \
On<br>RewriteBase /<br> AddDefaultCharset UTF-8<br>RewriteCond %{REQUEST_METHOD} \
!POST<br>RewriteCond %{QUERY_STRING} !.*=.*<br>RewriteCond %{HTTP:Cookie} \
!^.*(comment_author_|wordpress|wp-postpass_).*$<br>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).*<br> RewriteCond %{HTTP:Accept-Encoding} \
gzip<br>RewriteCond %{DOCUMENT_ROOT}/home/.kirkwood/davidesalerno/<a \
href="http://davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html. \
gz">davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz</a> \
-f<br> RewriteRule ^(.*) /home/.kirkwood/davidesalerno/<a \
href="http://davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html. \
gz">davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz</a> \
[L]<br> <br>RewriteCond %{REQUEST_METHOD} !POST<br>RewriteCond %{QUERY_STRING} \
!.*=.*<br>RewriteCond %{HTTP:Cookie} \
!^.*(comment_author_|wordpress|wp-postpass_).*$<br>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).*<br> RewriteCond \
%{DOCUMENT_ROOT}/home/.kirkwood/davidesalerno/<a \
href="http://davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html">davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html</a> \
-f<br> RewriteRule ^(.*) /home/.kirkwood/davidesalerno/<a \
href="http://davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html">davidesalerno.net/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html</a> \
[L]<br> &lt;/IfModule&gt;<br><br>Thank you so much in \
advance,<br></div><div>Davide</div>



_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic