====== Direct Out Links ====== **Note:** This information is outdated as of 2011.12, but retained for reference. Google has deoptimized many sites previously hosted on SmartThumbs. While we don't know exactly what triggered this, it's possible similar issues could affect trade sites using out.php without direct links. If you're concerned that Google may penalize sites with out.php redirects, here are some alternative approaches: **Options:** ===== Option 1: jQuery + jsvar ===== This approach adds out.php redirects via JavaScript. For users with JavaScript enabled, the links function the same as before. For users without JS, all traffic goes to content (100%). Add this code to your page: For links that should redirect through out.php, add the `jsvar='out'` attribute: out link
For direct links without out.php: direct link That's all. Both links appear "direct" to Google's crawler (at least for now). Here's a complete HTML example for testing. Save it as test.html in your SmartCJ domain root: out link
direct link
==== Option 1 with Stream ==== Write a sub-template in Stream: #DESC# Add the JavaScript code to the main template (before the closing `` tag): ===== Option 2: jQuery + random links ===== This option is similar to Option 1, but JavaScript directly manages skimming, and only trading clicks are sent to the trade script. This effectively replaces the script's built-in skimming. For users with JavaScript enabled, all traffic goes to content (100%). In your script settings, set skimming to 0% so the script only counts trade clicks (though URL clicks are still tracked). Use the same link format as Option 1. ===== Option 3: mod_rewrite ===== This approach replaces out.php with a different URL (like gallery.html), while the server actually executes out.php behind the scenes. The example below uses Stream, but you can apply the same technique with the built-in rotator or any other system. 1. Place an .htaccess file where out.php is located: RewriteEngine on RewriteRule ^gallery/(.*)$ streamrotator/out.php?%{QUERY_STRING} 2. Replace old links: thumb With the rewritten format: thumb For Stream, use this sub-template format: #DESC# ===== Option for trader top lists ===== Add this rule to .htaccess: RewriteRule ^partner/(.+)/(.+).html$ /scj/cgi/out.php?link=$1&member=$2 [L,QSA] Then use URLs in your top list like: href="/partner/mtop/_MEMBER_1_.html"