Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 1 of 6 123 ... LastLast
Results 1 to 10 of 52

Thread: vBSEO integration

  1. #1
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default vBSEO integration

    vBET can be integrated with vBSEO to support SEO translation links and also to translate titles inside links for threads.

    IMPORTANT: if you use vBET 4.x with vBSEO you have to make full integration - it means that before setting .htaccess rules you MUST do all steps described in installation instructions in vBSEO Integration section. For vBET 2.x users just make .htaccess part (2 files changes required).

    To integrate vBET with vBSEO edit .htaccess file:
    JUST BEFORE all rules to vbseo.php put only one of these two types of rules:

    - SHORT RULES
    Faster and more efficient but can be used only if you are NOT using links with 2-signs part i.e: yourforum.com/XY/

    Code:
    RewriteRule ^/?(..|zh-CN|zh-TW)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
    RewriteRule ^/?(..|zh-CN|zh-TW)/(.*)?$ 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]

    If your forum use subdirectory in URL, then change 2 first rules adding your forum directory with leading '/' just after redirected=. So i.e. if your forum is in forum directory then you will have redirected=/forum/index.php and redirected=/forum/$2



    - LONG RULES
    Can by used always

    Code:
    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=/ [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]
    If your forum use subdirectory in URL, then change 2 first rules adding your forum directory with leading '/' just after redirected=. So i.e. if your forum is in forum directory then you will have redirected=/forum/index.php and redirected=/forum/$2
    Last edited by Marcin Kalak; 20-08-12 at 21:03.

  2. #2
    Senior Member
    Join Date
    Mar 2010
    Posts
    116

    Default

    i dont see rules at my vbseo.php
    Last edited by vBET; 26-03-10 at 22:16. Reason: bbcode correction

  3. #3
    Senior Member
    Join Date
    Mar 2010
    Posts
    116

    Default

    <?php
    error_reporting(0);

    include_once(dirname(__FILE__).'/vbseo/includes/functions_vbseo.php');
    include_once(vBSEO_Storage:ath('vbinc') . '/' . VBSEO_VB_CONFIG);

    vbseo_requested_url();

    $vbseo_fullurl = VBSEO_TOPREL . $vbseo_url_;
    $vbseo_url_suggest = '';

    switch ($vbseo_url_)
    {
    case 'vbseo.php':
    exit;
    break;

    case 'vbseo_sitemap.php':
    case 'vbseocp.php':
    case 'cron.php':
    case 'cron.html':

    include $vbseo_url_;

    exit;
    break;
    }

    // vBSEO - full version start \************************************--
    if (VBSEO_IN_PINGBACK && ($vbseo_url_ == 'vbseo-xmlrpc/'))
    {
    if (!defined('THIS_SCRIPT'))
    @define('THIS_SCRIPT', 'newreply');
    include dirname(__FILE__) . '/global.' . VBSEO_VB_EXT;
    vbseo_extra_inc('linkback');
    vbseo_xmlrpc_proc();
    exit;
    }

    if (VBSEO_REDIRECT_PRIV_EXTERNAL && ($vbseo_url_ == VBSEO_REDIRECT_URI))
    {
    $uredir = $_GET['redirect'];
    //$uredir = urldecode($uredir);
    $uredir = preg_replace('#&(?![a-z0-9\#]+#si', '&amp;', $uredir);
    $uredir = str_replace('"', '&quot;', $uredir);
    //$uredir = str_replace(' ', '%20', $uredir);
    if (preg_match('#^https?:\/\/#', $uredir) && !preg_match('#["<>]#', $uredir))
    {
    echo '<html><head><meta http-equiv="refresh" content="0;url=' . $uredir . '"></head><body></body></html>';
    exit;
    }
    }


    and more
    no rewritecond there

  4. #4
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by badawidollah View Post
    i dont see rules at my vbseo.php
    Rules are in .htaccess file. Instruction do NOT say to edit vbseo.php - it says to edit .haccess file and to put additional content before RULES TO vbseo.php. Please go to your .htaccess file and you will find there rules for vbseo.php

  5. #5
    Senior Member
    Join Date
    Mar 2010
    Posts
    116

    Default

    my .httaccess in my forum root (in http://www.nusantaraku.org/forum/.httaccess

    i must follow below this too?

    Now - if your forum use subdirectory in URL, then change 2 first rules adding your forum directory with leading '/' just after redirected=. So i.e. if your forum is in forum directory then you will have redirected=/forum/index.php and redirected=/forum/$2

    **without add that, my forum can translate too (but multi languages not support)

  6. #6
    Senior Member
    Join Date
    Mar 2010
    Posts
    116

    Default

    Quote Originally Posted by vBET View Post
    Rules are in .htaccess file. Instruction do NOT say to edit vbseo.php - it says to edit .haccess file and to put additional content before RULES TO vbseo.php. Please go to your .htaccess file and you will find there rules for vbseo.php
    there rules for vbseo.php?
    i think many new users thinks about vbseo.php in their forut root
    better you said it rules for vbseo in .htaccess

  7. #7
    Senior Member
    Join Date
    Mar 2010
    Posts
    116

    Default

    RewriteEngine On

    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=/forum/ [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=/forum/$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]

    RewriteBase /forum/

    RewriteCond %{HTTP_HOST} !^www\.nusantaraku\.org
    RewriteRule (.*) http://www.nusantaraku.org/forum/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    i am using vbseo
    and i am using vbseo sitemap generator 2.6

  8. #8
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by badawidollah View Post
    i am using vbseo
    and i am using vbseo sitemap generator 2.6
    Our description clearly says to set vBET rules JUST BEFORE rules to vbseo.php You put it too early. Please move it. Do you need more help in this issue?

    I wrote additional description about this to put more attention on JUST BEFORE part

  9. #9
    Junior Member
    Join Date
    Apr 2010
    Posts
    6

    Default

    Text automatically translated from: Polish to: English
    Translated text
    How is the integration of instruction vBSEO Lighttpd +?

    Yours.
    Original text

  10. #10
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by precylnet View Post
    Text automatically translated from: Polish to: English
    Translated text
    How is the integration of instruction vBSEO Lighttpd +?

    Yours.
    Original text
    Text automatically translated from: Polish to: English
    Translated text
    Please send your current rule, Lighttpd, it will send you updated
    Original text

Page 1 of 6 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •