一开始它是一项基本的lighttpd的百度推广重写看起来像这样: Code: $HTTP["host"] == "DOMENA" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1", "^/(.+)\?(.*)$" => "/vbseo.php?$2", "^/(.+)$" => "/vbseo.php" ) } 我看了这个论坛的全部改写,目前看起来像这样: Code: $HTTP["host"] == "SCIEZKA DO STRONY" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^/(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=", "^/(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", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1", "^/(.+)\?(.*)$" => "/vbenterprisetranslator_seo.php?$2", "^/(.+)$" => "/vbenterprisetranslator_seo.php" ) } 显然是行不通的 - 显示在入口到一个空白页索引只能在krzaczy波兰forum.php休息 在预先感谢支持, 你的。 Na początku była to podstawowa regułka od vbseo pod lighttpd wygląda mniej więcej tak: Code: $HTTP["host"] == "DOMENA" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*.(xml|txt)(.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon.ico|/robots.txt|.*clear.gif)$" => "$1", "^/(.+)?(.*)$" => "/vbseo.php?$2", "^/(.+)$" => "/vbseo.php" ) } Poczytałem trochę te forum i aktualnie CAŁA regułka wygląda tak: Code: $HTTP["host"] == "SCIEZKA DO STRONY" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*.(xml|txt)(.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^/(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=", "^/(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", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon.ico|/robots.txt|.*clear.gif)$" => "$1", "^/(.+)?(.*)$" => "/vbenterprisetranslator_seo.php?$2", "^/(.+)$" => "/vbenterprisetranslator_seo.php" ) } Nie działa oczywiście - wyświetla blank page przy wejściu na index działa tylko forum.php w języku Polskim reszta się krzaczy Z góry dzięki za support, Pozdrawiam.
$HTTP["host"] == "DOMENA" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1", "^/(.+)\?(.*)$" => "/vbseo.php?$2", "^/(.+)$" => "/vbseo.php" ) }
$HTTP["host"] == "SCIEZKA DO STRONY" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^/(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=", "^/(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", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1", "^/(.+)\?(.*)$" => "/vbenterprisetranslator_seo.php?$2", "^/(.+)$" => "/vbenterprisetranslator_seo.php" ) }
$HTTP["host"] == "DOMENA" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*.(xml|txt)(.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon.ico|/robots.txt|.*clear.gif)$" => "$1", "^/(.+)?(.*)$" => "/vbseo.php?$2", "^/(.+)$" => "/vbseo.php" ) }
$HTTP["host"] == "SCIEZKA DO STRONY" { server.document-root = "SCIEZKA DO /HTML/" url.rewrite-once = ( "^/(sitemap.*.(xml|txt)(.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1", "^/(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=", "^/(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", "^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1", "^(/favicon.ico|/robots.txt|.*clear.gif)$" => "$1", "^/(.+)?(.*)$" => "/vbenterprisetranslator_seo.php?$2", "^/(.+)$" => "/vbenterprisetranslator_seo.php" ) }
什么是您的论坛地址? - 我需要知道是否在论坛使用的地址一个子目录,并作为的话, Jaki jest adres do Twojego forum? - muszę wiedzieć czy forum używa podkatalogu w adresie, a jak tak to jakiego
查看标签云
论坛