vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vB Global Translator - Multiply your indexed pages & put search traffic on autopilot (https://vborg.vbsupport.ru/showthread.php?t=217329)

imported_silkroad 08-05-2009 06:57 AM

Hey!

I nominated the mod for MOTM, and sure enough, there it is and currently running in second place !!!

https://vborg.vbsupport.ru/showthread.php?t=219942

Go Man Go!

imported_silkroad 08-05-2009 07:07 AM

Quote:

Originally Posted by tpearl5 (Post 1861295)
Did you add this to your custom rewrite rules and custom redirects?

No, not yet.... just brainstorming.... please do not install the CRRs mentioned !

I was only brainstorming with NLP-er !! (and it did not work yet!)

Still under development!!

Ideas welcome!

PS: Maybe I should not brainstorm CRRs here? We don't want anyone to crash their board on an untested idea....

CThiessen 08-05-2009 07:22 AM

Quote:

Originally Posted by imported_silkroad (Post 1861674)
Ideas welcome!

Hi.
Maybe it is necessary to change the general rewrite settings.


Instead of : link.html use link.html&hl=en (own language) by editing the core files.

So than the standard is equal.
In the next step using the CRR to change:

link.html&hl=en to link.html (own language)
and
link.html&hl=ja to /ja/link.html (for every other language)

I am not a coder it is only a Idea.
Christian

imported_silkroad 08-05-2009 07:37 AM

I like this idea as well. We need to consider how this all plays with the vBSEO Sitemap Generator as well.

Unfortunately, I am not an expert on CRRs, but I think we can get there with a little time and help from our friends at vBSEO.

I think the overall requirement should be to rewrite all "/link.html?hl=flag" links to "flag/link.html" and to also make sure the "flag/link.html" links in the sitemaps, as well as the original "/link.html?hl=flag" work.

Also, I have been using distinct Google Sitemap for each flag and it works much better than combining all the flags in one huge, unmanageable process.

See attached update, as a FYI. (Note, in my image below, I changed es to sp (directory) ... the directory for the sitemaps only, because I had another es directory... you can use any method you like, but I like to have all lang sitemaps in a single directory for each lang.... much easier to manage!)

cyc 08-05-2009 07:58 AM

Quote:

Originally Posted by imported_silkroad (Post 1861684)
I think the overall requirement should be to rewrite all "/link.html?hl=flag" links to "flag/link.html" and to also make sure the "flag/link.html" links in the sitemaps, as well as the original "/link.html?hl=flag" work.

I also think this is the way to go!

imported_silkroad 08-05-2009 11:44 AM

Quote:

Originally Posted by cyc (Post 1861691)
I also think this is the way to go!

OK, thanks to Oleg at vBSEO, we have the first part working with:

Code:

RewriteEngine on
RewriteRule (.*) http://www.site.com/$1?hl=ja [L,R=301]

Using Japanese as an example (ja), we use SED to create a new sitemap, changing

Code:

http://www.yoursite.com/link.html?hl=ja
to

Code:

http://www.yoursite.com/japan/link.html

Tested and working thanks to the vBSEO team's great support. Thanks again VBSEO team.

imported_silkroad 08-05-2009 11:59 AM

[QUOTE=imported_silkroad;1861799]

Code:

RewriteEngine on
RewriteRule (.*) http://www.site.com/$1?hl=ja [L,R=301]

OBTW, I forgot to ask....

Is there any SEO issue related to returning a 301 permanent redirect code?

Saviour 08-05-2009 10:50 PM

Just got the following database errors after Google and AdSense spidered the site:

Code:

Database error in vBulletin 3.8.3:

Invalid SQL:

UPDATE vb_session
SET lastactivity = 1249514101, location = '/forums/showthread.php?t=845&hl=tr', inforum = 58, inthread = 845, incalendar = 0, badlocation = 0
WHERE sessionhash = '122a4492f1ad4d9b896966deb0020880';

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Wednesday, August 5th 2009 @ 07:15:01 PM
Error Date    : Wednesday, August 5th 2009 @ 07:16:22 PM
Script        : http://glitchpc.com/forums/showthread.php?t=845&hl=tr
Referrer      :
IP Address    : 66.249.71.172
Username      : Unregistered
Classname    : vB_Database
MySQL Version :


Also...

Code:

Database error in vBulletin 3.8.3:

Invalid SQL:

UPDATE vb_session
SET lastactivity = 1249514535, location = '/forums/showthread.php?t=845&hl=th', inforum = 58, inthread = 845, incalendar = 0, badlocation = 0
WHERE sessionhash = '122a4492f1ad4d9b896966deb0020880';

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Wednesday, August 5th 2009 @ 07:22:15 PM
Error Date    : Wednesday, August 5th 2009 @ 07:23:36 PM
Script        : http://glitchpc.com/forums/showthread.php?t=845&hl=th
Referrer      :
IP Address    : 66.249.71.172
Username      : Unregistered
Classname    : vB_Database
MySQL Version :


And again...

Code:

Database error in vBulletin 3.8.3:

Invalid SQL:

UPDATE vb_session
SET lastactivity = 1249514972, location = '/forums/showthread.php?t=845&hl=nl', inforum = 58, inthread = 845, incalendar = 0, badlocation = 0
WHERE sessionhash = '122a4492f1ad4d9b896966deb0020880';

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Wednesday, August 5th 2009 @ 07:29:32 PM
Error Date    : Wednesday, August 5th 2009 @ 07:30:41 PM
Script        : http://glitchpc.com/forums/showthread.php?t=845&hl=nl
Referrer      :
IP Address    : 66.249.71.172
Username      : Unregistered
Classname    : vB_Database
MySQL Version :


Any ideas what's causing this?

cyc 08-05-2009 11:12 PM

Quote:

Originally Posted by Saviour (Post 1862224)
Just got the following database errors after Google and AdSense spidered the site:

Hi there

The first time a page is cached, it can take 5 or 10 seconds, your mysql connection is probably timing out.

open your /etc/my.cnf file with vi or similar editor.

There should be a setting called "wait_timeout" i'd increase it a little until the errors stop, ours is;

wait_timeout = 30

regards

Saviour 08-05-2009 11:34 PM

cyc...

Thanks for replying. I don't see the /etc/ directory you're referring to on my server.

I'm on a shared server...not sure if this makes a difference.


All times are GMT. The time now is 10:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02349 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete