Page 1 of 1

404 google domain trick-----Single domain AND Cross domain versions

Posted: Mon Dec 08, 2008 3:21 am
by JeremyBASS
Ok here is another tip...

on your 404 message

Code: Select all

{assign var=domain value=$smarty.server.SERVER_NAME|replace:'www.':''|replace:'.':''|replace:'-':''|replace:'corbensproducts':''} {literal}<!--   #goog-wm { }   #goog-wm h3.closest-match { }   #goog-wm h3.closest-match a { }   #goog-wm h3.other-things { }   #goog-wm ul li { }   #goog-wm li.search-goog { display: block; } -->
<__script__ type="text/javascript"><!--
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = 'http://www.corbensproducts.{/literal}{$domain}{literal}/';
// --></__script>
<__script__ src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js" type="text/javascript"></__script>
{/literal}
Now ofcourse you'll want to change your domain name to replace corbensproducts ... it's there so show....


proof

www.corbensproducts.com/lklk
www.corbensproducts.biz/lklk
www.corbensproducts.org/lklk
www.corbensproducts.info/lklk
www.corbensproducts.net/lklk


theses trick are useful for many other things... the goal is no hacks and easy management of sites...

hope this helps
cheers
jeremyBass

Re: 404 google domain trick-----Single domain AND Cross domain versions

Posted: Tue Dec 23, 2008 7:42 pm
by JeremyBASS
Here is a single site version... this is just copy and paste...

Code: Select all

<p>Page could not be found.</p>
{assign var=domain value=$smarty.server.SERVER_NAME} {literal} <!--   #goog-wm { }   #goog-wm h3.closest-match { }   #goog-wm h3.closest-match a { }   #goog-wm h3.other-things { }   #goog-wm ul li { }   #goog-wm li.search-goog { display: block; } -->
<__script__ type="text/javascript"><!--
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = 'http://www.{/literal}{$domain }{literal}.com/';
// --></__script>
<__script__ src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js" type="text/javascript"></__script>
{/literal}

Re: 404 google domain trick-----Single domain AND Cross domain versions

Posted: Wed Dec 24, 2008 5:55 am
by JeremyBASS
Ok this seems to work on both types...

Code: Select all

{strip}{assign var=domain value=$smarty.server.SERVER_NAME} {literal}<!--   #goog-wm { }   #goog-wm h3.closest-match { }   #goog-wm h3.closest-match a { }   #goog-wm h3.other-things { }   #goog-wm ul li { }   #goog-wm li.search-goog { display: block; } --> <__script__ type="text/javascript"><!--
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = 'http://{/literal}{$domain}{literal}/';
// --></__script><__script__ src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js" type="text/javascript"></__script>{/literal}{/strip}