Q. những gì về htaccess lighttpd + Lên?
Quy tắc cho apache htaccess: (không có bất kỳ quy tắc cho lighttpd)
Lên quy tắc lighttpd:Code:#RULES for SEO translation links with vbSEO (have to be included before all rules to vbseo.php) #RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/index.php [L,QSA] #RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA] #RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron) #RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ #RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]
Những gì về quy tắc cho:Code:$HTTP["host"] == "yourdomain.com" { server.document-root = "/path/to/your/public_html/" url.rewrite-once = ( "^/forums/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^(/forums/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1", "^/forums/(.+)\?(.*)$" => "/forums/vbseo.php?$2", "^/forums/(.+)$" => "/forums/vbseo.php" ) }
1. lighttpd + Lên + vbet
2. nginx + Lên + vbet
Cảm ơn bạn.


Trả lời Với Trích Dẫn
Xin lỗi - nhưng như tôi đã viết nó đã không được thử nghiệm. Hy vọng nó làm việc. Xin vui lòng sao lưu các quy tắc thực tế của bạn trước khi thay đổi được thực.
