Results 1 to 8 of 8

Problem with vbSEO 3.3.1

This is a discussion on Problem with vbSEO 3.3.1 within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello - I have big problem with 3.3.1 I have integrated mod with vbSEO . It works fine on 3.3.0, ...

  1. #1
    Senior Member NLP-er's Avatar
    Real Name
    Michal Podbielski
    Join Date
    Aug 2008
    Location
    Poland
    Posts
    115
    Liked
    0 times

    Problem with vbSEO 3.3.1

    Hello - I have big problem with 3.3.1

    I have integrated mod with vbSEO. It works fine on 3.3.0, but crashes on 3.3.1

    For integration I have own .htacces rules
    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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|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]

    And inside vbenterprisetranslator_seo.php (there redirects .htaccess) I have:
    Code:
    if(isset($_GET['vbet_lang'])) {
    	$_GET['language'] = $_GET['vbet_lang'];
    	$_SERVER['REQUEST_URI'] = $_GET['redirected'];
    	$_SERVER['HTTP_X_REWRITE_URL'] = $_SERVER['REQUEST_URI'];
    
    //for vbSEO 3.3.1 - crashes vbSEO 3.3.0
    	$_GET['vbseorelpath'] = $_SERVER['REQUEST_URI'];
    }
    
    include_once(dirname(__FILE__).'/vbseo.php');
    The line $_GET['vbseorelpath'] = $_SERVER['REQUEST_URI']; I added specially for 3.3.1 version - without it main page is crashed (error with connecting to database).

    So I already have working solution - not crashing one - but now on main page URL's are not changed in SEO way. Of course this happens only when .htaccess redirects to my file and my includes vbseo.php (when going to vbseo.php by its rules it is ok).

    As I wrote it all was working fine on 3.3.0, now it's not. What variables ($_SERVER, $_GET, something else) I must set to have working solution?

  2. #2
    Senior Member NLP-er's Avatar
    Real Name
    Michal Podbielski
    Join Date
    Aug 2008
    Location
    Poland
    Posts
    115
    Liked
    0 times
    Any help?...

  3. #3
    Senior Member NLP-er's Avatar
    Real Name
    Michal Podbielski
    Join Date
    Aug 2008
    Location
    Poland
    Posts
    115
    Liked
    0 times
    Still needed...

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    try to set vbseorelpath to:
    PHP Code:
    $_GET['vbseorelpath'] = ''

  5. #5
    Senior Member NLP-er's Avatar
    Real Name
    Michal Podbielski
    Join Date
    Aug 2008
    Location
    Poland
    Posts
    115
    Liked
    0 times
    Thanks for help

    Same thing - on main page links are not changed by vbSEO. Everywhere else works fine. Any other ideas?

    Maybe someone who worked on changes between 3.3.0 and 3.3.1 knows what was changed and what is needed now...

  6. #6
    Senior Member NLP-er's Avatar
    Real Name
    Michal Podbielski
    Join Date
    Aug 2008
    Location
    Poland
    Posts
    115
    Liked
    0 times
    Ok. I found my solution Bun only partially. I changed rules on one form and it is OK there.

    For other forum I'm just redirected back to main not translated page... So from http://x264-bb.com/pl/ I'm magically redirected by vbSEO to http://x264-bb.com/

    Any solution?
    Last edited by NLP-er; 09-21-2009 at 08:12 PM.

  7. #7
    Senior Member NLP-er's Avatar
    Real Name
    Michal Podbielski
    Join Date
    Aug 2008
    Location
    Poland
    Posts
    115
    Liked
    0 times
    Correction about last one.
    Address http://x264-bb.com/pl/ redirects to:
    http://x264-bb.com/?vbet_lang=pl&redirected=/index.php

    As I wrote My rules are changed to (really there is lot more languages):
    Code:
    RewriteRule ^/?(af|pl)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/index.php [L,QSA]
    RewriteRule ^/?(af|pl)/(.*)?$ 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]
    And inside vbenterprisetranslator_seo.php there is only:
    Code:
    if(isset($_GET['vbet_lang'])) {
    	$_GET['language'] = $_GET['vbet_lang'];
    	$_SERVER['REQUEST_URI'] = $_GET['redirected'];
    	$_SERVER['HTTP_X_REWRITE_URL'] = $_SERVER['REQUEST_URI'];
    }
    
    include_once(dirname(__FILE__).'/vbseo.php');
    So vbSEO redirects to main page including parameters from .htaccess internal redirection, instead or serve the request...

    What to set inside of my vbenterprisetranslator_seo.php before including vbseo.php to make it working in 3.3.1 (it was in 3.3.0)?...

    Please help

  8. #8
    Senior Member NLP-er's Avatar
    Real Name
    Michal Podbielski
    Join Date
    Aug 2008
    Location
    Poland
    Posts
    115
    Liked
    0 times
    Ok. Solution found!

Similar Threads

  1. problem with my VBSEO
    By tunedtech in forum Troubleshooting
    Replies: 8
    Last Post: 05-06-2009, 04:51 PM
  2. Need Help! Problem with vBSEO 3.3.0
    By arenammo in forum Troubleshooting
    Replies: 4
    Last Post: 04-15-2009, 10:39 PM
  3. i have a big problem with vbseo
    By bazebiz in forum Pre-Sales Questions
    Replies: 2
    Last Post: 06-24-2007, 06:10 PM
  4. htaccess file problem / vbseo problem
    By Bestgfe in forum Troubleshooting
    Replies: 6
    Last Post: 04-05-2006, 09:21 AM

Posting Permissions

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