valsha
18-02-10, 11:23
Р. какво да кажем. Htaccess в lighttpd + vbseo?
Вашите правила за Apache Htaccess: (няма никакви правила за lighttpd)
#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]
vBSEO правила за lighttpd:
$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 + vbseo + vbet
2. Nginx + vbseo + vbet
Благодаря.
Вашите правила за Apache Htaccess: (няма никакви правила за lighttpd)
#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]
vBSEO правила за lighttpd:
$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 + vbseo + vbet
2. Nginx + vbseo + vbet
Благодаря.