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

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
JeremyBASS

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

Post 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
Last edited by JeremyBASS on Tue Dec 23, 2008 7:42 pm, edited 1 time in total.
JeremyBASS

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

Post 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}
JeremyBASS

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

Post 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}
Post Reply

Return to “Tips and Tricks”