Apache .htacess 格式转换成 lighttpd 格式,求高人指点 程序:oscommerce 5

#########OrderDeny,AllowDenyfrom206.53.147.211#########<IfModulemod_setenvif.c><IfDef... #########
Order Deny,Allow
Deny from 206.53.147.211
#########
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

<IfModule expires_module>
ExpiresActive On
ExpiresDefault A3600
ExpiresByType image/gif A3600
ExpiresByType image/jpeg A3600
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl|jpg|png|gif)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

Options +FollowSymLinks

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)-p-(.*).html$ index.php?products_id=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/page(.*)/pm/(.*)/ps(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/page(.*)/ps/(.*)/pm(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/ps(.*)/pm/(.*)/page(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/ps(.*)/page/(.*)/pm(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/pm(.*)/page/(.*)/ps(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/pm(.*)/ps/(.*)/page(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/page(.*)/pm/(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/page(.*)/ps/(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/ps(.*)/pm/(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/ps(.*)/page/(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/pm(.*)/ps/(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/pm(.*)/page/(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/page(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/ps(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-c-(.*)/pm(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-sk-(.*)/ps(.*)/page(.*).html$ advanced_search_result.php?keywords=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-sk-(.*)/page(.*)/ps(.*).html$ advanced_search_result.php?keywords=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-sk-(.*)/ps(.*).html$ advanced_search_result.php?keywords=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-sk-(.*)/page(.*).html$ advanced_search_result.php?keywords=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^(.*)-sk-(.*).html$ advanced_search_result.php?keywords=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pfp-(.*).html$ account_products_favourites.php?pfPage=$2&%{QUERY_STRING}
RewriteRule ^(.*)-shp-(.*).html$ support_history.php?shPage=$2&%{QUERY_STRING}

RewriteRule feeds_data.txt googlebase.php
展开
 我来答
jackchengen
2011-10-13 · 超过22用户采纳过TA的回答
知道答主
回答量:67
采纳率:100%
帮助的人:49.6万
展开全部
lighttpd暂时不支持 .htacess 这种形式的配置文件,因为lighttpd不支持配置文件的热加载。 看见论坛上有人讨论过,不过没人做。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式