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 2 12 LastLast
Results 1 to 10 of 14

Thread: Bad redirect

  1. #1
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default Bad redirect

    Hi Michael, in Google webmaster tools i am having some bad redirects show up under the crawling, not found tab, 14,000 of them.

    Here is an example.

    http://www.example.com/forums/bg/f46...e-24662/?hl=hi

    A header checker says it 301 redirects to;

    http://www.example.com/forums/hi/vbe...slator_seo.php

    I do not know how google is finding these pages, but i am more concerned why they are 301 redirected to vbenterprisetranslator_seo.php

    Do you have an htaccess suggestion so i can redirect them to the proper translated pages.

    Thanks.

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

    Default

    As I see you was using old translator mod. That is why Google remembers those links with hl=. Here you will find appropriate redirecting rule:
    http://www.vbenterprisetranslator.co...aq.html#post13

  3. #3
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default

    I am already using that redirect, note these urls have both the directory /ar/ and ?hl=ar in the url so they are a combination of both mods urls.

  4. #4
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default

    This issue is not closed, wtf.

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

    Default

    Relax Please give me your whole .htaccess file

  6. #6
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default

    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.
    SetOutputFilter DEFLATE
    RewriteEngine On
    
    #RewriteCond %{HTTP_USER_AGENT} ^msnbot [NC] 
    #RewriteRule .* - [F,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=/forums/ [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=/forums/$2 [L,QSA]
    
    RewriteCond %{QUERY_STRING} (hl=|language=)(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)
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/forums/%2/$1? [L,R=301]
    
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    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]
    
    # 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 %{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]
    Last edited by vBET; 14-03-10 at 03:45. Reason: added CODE bbcode

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

    Default

    Put hl= rule BEFORE vBET rules. This will solve the issue

  8. #8
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default

    Somehow I'm creating 1,000s of duplicate content pages.

    site:www.computer-juice.com/ inurl:?hl=t - Google Search

    I am 301 redirecting these to the homepage.

    How is google finding these junk URLs?

    Is it because of the old mod?
    Last edited by Snake; 14-03-10 at 17:59.

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

    Default

    Yes - the old one was generating links with hl= vBET was never making such links. And you had in wrong place your rule which have to redirect such old links. Now when you have it corrected Google will stay with appropriate link only. Of curse it can take some time for Google.

  10. #10
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default

    Right, but, google is finding pages with ?hl=t in them, t on it's own was never in either script.

Page 1 of 2 12 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
  •