我只激活它,当我实际测试,否则我的成员可能会开始点击标志和空白屏幕。
vbet设置:
论坛语言:英语
论坛目录:/论坛
论坛的主要域:未设置
链接类型:VBSEO_URI
配置类型:你想要的翻译链接创建URL的搜索引擎优化链接的共识(即“/ EN /地址')
我只激活它,当我实际测试,否则我的成员可能会开始点击标志和空白屏幕。
vbet设置:
论坛语言:英语
论坛目录:/论坛
论坛的主要域:未设置
链接类型:VBSEO_URI
配置类型:你想要的翻译链接创建URL的搜索引擎优化链接的共识(即“/ EN /地址')
这里的东西:
如果我输入在德国,我得到我的论坛的主要页面。该URL应该打开我的CMSPHP Code:
http://www.xxxx.com/de/
最后编辑者 norku; 18-02-12 在 23:45.
我可以看到..所以这个问题是在。htaccess。我会analize的。
试试这个:
Code:# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^www\.hj-research\.com RewriteCond %{HTTP_HOST} !(^www.hj-research.com$|^cdn.hj-research.com$) RewriteRule (.*) http://www.hj-research.com/$1 [R=301,L] #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301] RewriteRule ^forum/((urllist|sitemap_).*.(xml|txt)(.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] #vbet translator rules start RewriteRule ^/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA] RewriteRule ^/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/(.*)?$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron) RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbenterprisetranslator_seo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ forum/vbenterprisetranslator_seo.php [L,QSA] #vbet translator rules end RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap) RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ forum/vbseo.php [L,QSA] ## Expires <ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" ExpiresByType image/gif "access plus 3456000 seconds" ExpiresByType image/jpeg "access plus 3456000 seconds" ExpiresByType image/png "access plus 3456000 seconds" ExpiresByType text/css "access plus 3456000 seconds" ExpiresByType text/javascript "access plus 3456000 seconds" ExpiresByType application/javascript "access plus 3456000 seconds" ExpiresByType application/x-javascript "access plus 3456000 seconds" </ifModule> ## Compression <ifmodule mod_headers.c> <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text/html </ifmodule> </ifmodule> #Remove index.php from hj-research.com/index.php #rewrite engine on RewriteCond %{THE_REQUEST} index.php RewriteCond %{QUERY_STRING} ^$ RewriteRule ^index.php$ / [L,R=301]
最后编辑者 kamilkurczak; 09-03-11 在 19:42.
请检查这一项:
如果仍然无法正常工作 - 这种形式取代这一行:Code:# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^www\.hj-research\.com RewriteCond %{HTTP_HOST} !(^www.hj-research.com$|^cdn.hj-research.com$) RewriteRule (.*) http://www.hj-research.com/$1 [R=301,L] #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301] RewriteRule ^forum/((urllist|sitemap_).*.(xml|txt)(.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] #vbet translator rules start RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/ [L,QSA] RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/(.*)?$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/$2 [L,QSA] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron) RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbenterprisetranslator_seo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ forum/vbenterprisetranslator_seo.php [L,QSA] #vbet translator rules end RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap) RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ forum/vbseo.php [L,QSA] ## Expires <ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" ExpiresByType image/gif "access plus 3456000 seconds" ExpiresByType image/jpeg "access plus 3456000 seconds" ExpiresByType image/png "access plus 3456000 seconds" ExpiresByType text/css "access plus 3456000 seconds" ExpiresByType text/javascript "access plus 3456000 seconds" ExpiresByType application/javascript "access plus 3456000 seconds" ExpiresByType application/x-javascript "access plus 3456000 seconds" </ifModule> ## Compression <ifmodule mod_headers.c> <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text/html </ifmodule> </ifmodule> #Remove index.php from hj-research.com/index.php #rewrite engine on RewriteCond %{THE_REQUEST} index.php RewriteCond %{QUERY_STRING} ^$ RewriteRule ^index.php$ / [L,R=301]
Code:RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA] RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/(.*)?$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]
有你有一个很好的htaccess来翻译主页:
Code:# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^www\.hj-research\.com RewriteCond %{HTTP_HOST} !(^www\.hj-research\.com$|^cdn\.hj-research\.com$) RewriteRule (.*) http://www.hj-research.com/$1 [R=301,L] #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301] RewriteRule ^forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] #vbet translator rules start #vbet outside site 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)/$ index.php?language=$1&vbet_outside=true [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)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA] RewriteCond %{QUERY_STRING} !vbet_outside=true RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA] RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA] RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/(.*)?$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron) RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbenterprisetranslator_seo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ forum/vbenterprisetranslator_seo.php [L,QSA] #vbet translator rules end RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap) RewriteRule ^forum/((archive/)?(.*\.php(/.*)?))$ forum/vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ forum/vbseo.php [L,QSA] ## Expires <ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" ExpiresByType image/gif "access plus 3456000 seconds" ExpiresByType image/jpeg "access plus 3456000 seconds" ExpiresByType image/png "access plus 3456000 seconds" ExpiresByType text/css "access plus 3456000 seconds" ExpiresByType text/javascript "access plus 3456000 seconds" ExpiresByType application/javascript "access plus 3456000 seconds" ExpiresByType application/x-javascript "access plus 3456000 seconds" </ifModule> ## Compression <ifmodule mod_headers.c> <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html </ifmodule> </ifmodule> #Remove index.php from hj-research.com/index.php #rewrite engine on RewriteCond %{THE_REQUEST} index\.php RewriteCond %{QUERY_STRING} ^$ RewriteRule ^index\.php$ / [L,R=301]
最后编辑者 kamilkurczak; 09-03-11 在 22:35.
许多感谢你让这对我来说工作的工作。大加赞赏。我有一件事情,这是不工作的最佳虽然,但我会打开一个新的线程。
再次感谢
好吧如果 VBET 能解决 现在我们需要解决一个链接不好的问题