Forum Moderators: open
ASP and PHP both can do page redirects. And Microsoft IIS and Apache Web Server have even more options for you. All of these technologies have their own forums here, and once you know which options you have access to, those specific forums would be the best place for help if you still need it.
In terms of the javascript traffic analyzer, there can be no universal answer -- it would depend on how the specific application works. Whoever provides the solution would be the best place for you to turm, once you know how you plan to do the 301.
Using meta tags...
<meta http-equiv="REFRESH" content="0; URL=http://www.example.com">
and using javascript...
<script language="JavaScript"><!--
setTimeout('Redirect()',0);
function Redirect()
{
location.href = 'http://www.example.com';
}
// --></script>
or this...
<SCRIPT LANGUAGE="JavaScript">
<!--
window.location="http://www.example.com/";
// -->
</script>
You need the server to answer back to the user agent's url request with a 301 http header.
On the page PHP or ASP scripting -- and Apache Server or IIS Server settings. Those are your choices for a 301.
I don't really care about spiders at all, only real people. The reason I wanted to put this redirect on the page itself was because I'm also planning run a javascript traffic analyzer on the page so I can see where the traffic is coming from before forwarding it to my domains landing page where they're parked, because my preferred parking service doesn't provide sufficent traffic stats. There will be no content on the page, just traffic analyzer code and a redirect. I'm kinda scrambling in the dark, and it feels like I'm reinventing the wheel.
The reason I asked where to place the code on the page was, if I do a redirect, does the page stop executing, or will it execute the javascript traffic analyzer below the redirect. Or do I have to put the redirect below the traffic analyzer script?
Can you explain what you mean by dangerous? Do browsers (or anything) object to this technique? So you would suggest the window.location technique in javascript?
Finally, I want to avoid forwarding the hit to my parking page because then all my hits to my pages would come from my ip address. It has to be so that I tell the browser to go to my parking page directly. Do these techniques do this? I only mentioned 301 Redirects primarily because I know that is what it does. Tells the browser to go elsewhere. The traffic origin is not compromised.