7777 66

This was a question I originally asked over here, but apparently with Google it's a little more complicated than I thought it would be at first. The frame-busting script provided in the thread works like a charm, but even while it's unframed, Google still thinks it's in a translation process.

Once a page is translated, every link on that page is also translated, which is useful but not what I need when I just want to let users go back to the original URL. Trying to call the original page's URL via PHP just links to the proxied translation.

Any ideas? Thanks.

2 answers

0
points

Maybe have have the links go to a different subdomain? Like bustout.yourdomain.com/page.html and have your .htaccess with something like:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^bustout\.(.+)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]

You'd still need to create the subdomain, but it'll redirect to www. That's untested btw, and maybe a funny way around it, but it could trick Google that it's a different site.

Answered almost 8 years ago by dazonic
  • Nope, I'm wrong. It doesn't care what domain it's on, it'll translate every page. dazonic almost 8 years ago
  • Yep. I should also add that I tried adding "class=notranslate" to a certain section of webpage, as they said http://www.google.com/intl/en/help/faq_translation.html#donttranstext but even though it doesn't translate it's still part of the proxy. 7777 almost 8 years ago
orta 244
0
points

You could use jquery to go and fix all the hrefs in the a after its finished loading?

Answered almost 8 years ago by orta
  • Ok I'll take a look, I'll have to learn my way around jQuery first. 7777 almost 8 years ago