Similar problem here. Please help. $40 paypal for solution. http://forums.digitalpoint.com/showthread.php?t=1582156
ok i placed the code on very top. this is how it looked in the index output source.. {php} if (isset($_GET['ref'])) { echo "<script>window.location.replace(\"http://www.vids.net\")</script>"; } {/php} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> however i get this error msg on the top of the page and it didnt redirect. {php} if (isset($_GET['ref'])) { echo ""; } {/php}
I'm not sure if this is even possible anymore. Why don't you go to the cpanel and go to redirects, then enter the URL you want to redirect, and the the url for it to redirect to. Tbh, I'd like $20 just for spending a ton of time on this.
if possible through cpanel it should be possible through htaccess as well. dont have cpanel anyway...
Possible Solutions: 1. .htaccess RewriteEngine On RewriteRule ^index.php?ref=(.*) / [R=301,L] HTML: 2. PHP Code in your Smarty header.tpl file. {php} if (isset($_GET['ref'])) { echo "<script language=\"JavaScript\">window.location.replace(\"http://www.vids.net\")</script>"; } {/php} HTML: try with and without the {literal} braces. 3. Might be a problem with your server, is it apache, is mod_rewrite installed? Thanks and hope this will solve it. 3.
Its just a matter of getting the smarty tags correct, the code is correct etc...try the following... BTW you should be placing this code on a new line after everything else in the header.tpl file, otherwise your tracker script might not connect. {php} if (isset($_GET['ref'])) { echo "<script>window.location.replace(\"http://www.vids.net\")</script>"; } {/php} Code (markup): You could even go as far as pasting it after the </html> tag in footer.tpl, once its anywhere after your tracker script.