![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | Hi, Say I have a page a.com. Say I want to redirect a.com to b.com. That happens because a.com is obsolete and stuff. I can use javascript redirection right. The thing is a.com got a lot of traffic from search engine and I want to know the search engine that send traffic to a.com. I know it from referal. Now, that a.com has moved to b.com, I want to know the search engine by looking at the referral of b.com The problem is in b.com logs, b.com will simply note that a.com is its referral. If there is a link in c.com that link to a.com, which will redirect to b.com, how can I arrange a.com redirection so that it'll redirect traffic to b.com and make b.com to think that it got traffic from c.com? Jonathan |
|
| | #2 (permalink) |
| Civilians | Here are some alternatives you can try a.com: 1) .htaccess redirection http://www.javascriptkit.com/howto/htaccess.shtml 2) url forwarding using godaddy, mydomains, etc., http://www.mydomain.com/ 3) make a cgi, php, asp script that redirects to: b.com/log_it.php?ref=c.com I am not sure if the referrer will not change from c.com to a.com using method 1 and 2, but someone else may know that :-) |
|
| | #4 (permalink) |
| Civilians | >I wonder if doing > location.url = "b.com/?reference=referencesomething" would do. Sure. You will be able to read that in your server log file. If you wan't to put in dedicated log file just for referers from a.com redirects, you should make a small script that write "referencesomething" into a text file. |
|
| | #6 (permalink) |
| Civilians | To avoid confusion, I would like to keep the domain names from before: "Say C.com link to A.com which redirect to B.com. How can I arrange so that when I look at a.com log file, I see C.com?" 1) .htaccess redirection http://www.javascriptkit.com/howto/htaccess.shtml If you don't have referrer in you log file, or the referrer is changed with the redirect, you need to do a htaccess redirect that includes the referrer in the domain it redirects to: b.com?ref=c.com 2) url forwarding using godaddy, mydomains, etc., http://www.mydomain.com/ If you have the referrer isn't changed from c.com to a.com, and you can see referrers in your log file, you should be able to see c.com. 3) make a cgi, php, asp script that redirects to: b.com/log_it.php?ref=c.com This would always work, because ?ref=c.com would make it to the logfile. I am sure that someone in here may be able to provide the code for 1) and 3). I don't know much about htaccess, though, so I can not guarantee that you can insert the ?ref=c.com |
|
![]() | ![]() | ![]() |