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 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 39

Thread: Google caching thousands of duplicate pages with /lang/lang/lang issue

  1. #11
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Code:
    redirect 301 /phpBB2/phpdice.php http://www.allfreechips.com/afc_contests/dice.html
    # 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
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    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=/phpBB2/ [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=/phpBB2/$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]
    
    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]

  2. #12
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    hello,

    Firstly. please give an example with url with this issue. If you have double language in url - you should have a site with "invalid thread .."
    Please, go back all the changes you made and give me an example, If you can.

    This site is not working for me: http://www.allfreechips.com/ga/gl/af...ctpayment.html. You should make this subdirectory translated. You should make .htaccess file from here: http://www.vbenterprisetranslator.co...-2.html#post54

    After upgrade - did you set all settings in admincp->vBET->main ?

    Your .htaccess is ok.

  3. #13
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Quote Originally Posted by kamilkurczak View Post
    hello,

    Firstly. please give an example with url with this issue. If you have double language in url - you should have a site with "invalid thread .."
    Please, go back all the changes you made and give me an example, If you can.

    This site is not working for me: http://www.allfreechips.com/ga/gl/af...ctpayment.html. You should make this subdirectory translated. You should make .htaccess file from here: http://www.vbenterprisetranslator.co...-2.html#post54

    After upgrade - did you set all settings in admincp->vBET->main ?

    Your .htaccess is ok.
    Currently I I made a re-direct to 404 all the double lang issues, i want to make a 301 though so ill use your posted code and see if that works.

    When i did the upgrade, i uploaded the files and imported the xml, and this is where every thread just showed a blank cannot connect to page IE error.

    I did no further configuration in the vBet control panel as the settings all looked unchanged.

  4. #14
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    hete is my root .htaccess that has the re-direct i made

    Code:
    <Files ~ "\.inc$">
       Order allow,deny
       Deny from all
       Satisfy All
    </Files>
    
    
    Options +FollowSymlinks 
    RewriteEngine on 
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} ^allfreechips\.com 
    RewriteRule (.*) http://www.allfreechips.com/$1 [R=301,L] 
    
    
    
    #Those rules have to be in domain main folder
    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)/(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)* http://www.allfreechips.com/Allfreechips [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)/$ 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]
    
    
    
    
    #redirect 301 /_review/gold-rock-casino.html http://www.allfreechips.com/casino_review/500/21-grand-casino.html 
    RewriteRule [.]*play_casino([0-9]*) cportal/tclick.php?%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*play_banner([0-9]*) cportal/bclick.php?%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*casino_review/([0-9]*) casino_guide/info?id=%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*bingo_review/([0-9]*) casino_guide/info?id=%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*poker_review/([0-9]*) casino_guide/info?id=%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*skill_review/([0-9]*) casino_guide/info?id=%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*-afcinfo([0-9]*) info.php?%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*-resources([0-9]*) links.php?%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*game_review/([0-9]*) casino_guide/games?id=%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*casino_guide/([a-z0-9-]*) index.php?%{QUERY_STRING}&pageid=$1 [QSA]
    RewriteRule [.]*poker_guide/([a-z-]*) index.php?%{QUERY_STRING}&pageid=$1 [QSA]
    RewriteRule [.]*afc_contests/([a-z]*) index.php?%{QUERY_STRING}&pageid=$1 [QSA]
    RewriteRule [.]*skill_games_guide/([a-z-]*) index.php?%{QUERY_STRING}&pageid=$1 [QSA]
    RewriteRule [.]*bingo_guide/([a-z-]*) index.php?%{QUERY_STRING}&pageid=$1 [QSA]
    RewriteRule [.]*skill_guide/([a-z-]*) index.php?%{QUERY_STRING}&pageid=$1 [QSA]
    RewriteRule [.]*casino-banks/([a-z0-9-]*) casino_guide/binfo?id=%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*casino-banking/([a-z-]*) index.php?%{QUERY_STRING}&pageid=$1 [QSA]
    RewriteRule [.]*casino_test/([0-9]*) casino_guide/info2?id=%{QUERY_STRING}&id=$1 [QSA]
    
    RewriteRule [.]404.html /404-error-page.php [QSA]
    RewriteRule [.]*onlineslots/software/([a-z-]*) index.php?type=online&pageid=slotselect&software=$1 [QSA]
    RewriteRule [.]*onlineslots/features/([a-z-]*) index.php?type=online&pageid=slotselect&features=$1 [QSA]
    RewriteRule [.]*onlineslots/reels/([0-9]*) index.php?type=online&pageid=slotselect&reels=$1 [QSA]
    RewriteRule [.]*onlineslots/lines/([0-9]*) index.php?type=online&pageid=slotselect&lines=$1 [QSA]
    RewriteRule [.]*onlineslots index.php?type=online&pageid=slotselect [QSA]
    
    
    RewriteRule [.]*slots/software/([a-z-]*) index.php?type=offline&pageid=slotselect&software=$1 [QSA]
    RewriteRule [.]*slots/ index.php?type=offline&pageid=slotselect [QSA]
    
    
    
    
    
    #This rule must be in each directory which have to be supported (without forum directory itself)
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

  5. #15
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    please send to me you admincp anf FTP details on PM and I will fix it. Thanks.

  6. #16
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    Hello,

    Firstly. I can not manage your website on admincp as admin. In your admincp on my account I have only menu to vBET and vBSEO, but I need menu to plugins part also.

    Secondly, when I try to go to admincp->vBET->main I have this message:
    Code:
    Sorry, you don't have permission to access the administrative controls on this page. 
    
    If you need to access this page, ask your lead administrator to enable your permissions for this page using the Administrator Permissions section of the control panel.
    You forgot about your FTP host name. Please send it to me by PM.

    IMPORTANT
    Please update your vBSEO to the latest version and upgrade vBET once again.
    After upgrade vBSEO remember to edit two vBSEO files (everything is described in readme.html file in do-not-upload folder in vBET pack)

    Thanks

  7. #17
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    OK, Everything (except vbet) is updated. I did the mods for the sitemap and it now creates 4 files with 40,000 records but i still can not access them (internal server error)

    your access should be ok now as well.

  8. #18
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Fixed the sitemap

  9. #19
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    OK, On a roll, i actually upgraded the vbet as well and it works as desired. Should I remove the cache or just let that go?

  10. #20
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    OK, I updated the forum root/includes/vbenterprisetranslator_functions_hooks.php
    file by placing the code BEFORE the searched string so i have

    Code:
    if ('REQUEST_URI' == $vbulletin->options['vbenterprisetranslator_linkstype'] && $_REQUEST['goto'] != 'newpost' && $_REQUEST['language']) 
            { 
                require_once(DIR. '/includes/vbenterprisetranslator_functions_url_tracking.php'); 
                $url = str_replace('/'.$_REQUEST['language'].'/', '/', $_SERVER['REQUEST_URI']); 
                 
                if(preg_match('/\/('.VBET_LANGUAGESMATCH.')\//',$url))  
                { 
                     
                    $url = preg_replace('/('.VBET_LANGUAGESMATCH.')\//','',$url); 
                    exec_header_redirect($url); 
                } 
            }  
    
    
    if (!$vbulletin->userinfo['userid'] && $vbulletin->options['vbenterprisetranslator_guestfilecache_use']) {
    but its not re-directing the issue pages?

Page 2 of 4 FirstFirst 1234 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
  •