> I did have another option using javascript though, but I didn't want to > implement it because I don't know if search engines will > penalize you to have this type of redirect done like this. > > Here is my code in index.cfm: > <html> > <body> > <script type="text/javascript"> > if (document.URL=="www.abc.com" || document.URL=="www.xyz.com") > window.location.href='http://www.myfinalsite.com/NIhits.html'; > else > window.location.href='http://www.myfinalsite.com/index.shtml'; > > </script> > </body> > </html> > > NIhist.html has another redirect: > <html> > <head> > <script type="text/javascript"> > window.location.href='http://www.myfinalsite.com/index.shtml'; > </script> > </head> > > Having this other page NIhits.html, I can utilize the page statistic from my > hostsite, and see the statcs from users keying one web > site or the other. > > If you see this is a poorly way to way to implement this let me know, with > your suggestions of course,and if the search engines > could penalize you for doing this.
Search engines will not follow JavaScript redirects. You really need to do this the way Barney suggested. Your redirect page should do the following: 1. Log the current URL. 2. Log HTTP_REFERER, which may well be empty. 3. Redirect using CFLOCATION. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326557 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

