Redirect permanent / http . . ., How can I add argument(s) here? |
Redirect permanent / http . . ., How can I add argument(s) here? |
Dag |
Mar 4 2011, 06:37 PM
Post
#1
|
Advanced Member Group: Members Posts: 107 Joined: 24-October 06 Member No.: 549 |
Means:
Doman A Domain B both are redirected to Domain C. But can I grab something as referrer? Like: Hi. I came from A or Hellow. And me came from B! I don't need PHP help: everything is clear there. Apache only. |
Darin McGrew |
Mar 5 2011, 01:14 AM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Well, if the browser sends the HTTP Referer header, then you could use that to detect cases where they came to Domain C from Domain A or from Domain B. Of course, if there is no Referer header, then you don't know whether they typed the address directly or used a bookmark, or whether they came from Domain A or from Domain B and the Referer header just wasn't supplied.
How robust does the detection need to be? |
Dag |
Mar 5 2011, 04:10 AM
Post
#3
|
Advanced Member Group: Members Posts: 107 Joined: 24-October 06 Member No.: 549 |
Thank you Darin.
I am really stupid (sometimes)... I have 6 domains and one of them is working one. So, in the root of each of them I am simple writing diff. directive as: Domain A (root htaccess) Redirect permanent / http://myworking.domain/index_A Domain B (root htaccess) Redirect permanent / http://myworking.domain/index_B etc... is it good solution for managing several domains as one web-site? :: How robust does the detection need to be? It has to be unconditional of course because other domains has nothing (without htaccess error will be returned).. This post has been edited by Dag: Mar 5 2011, 04:12 AM |
Darin McGrew |
Mar 5 2011, 11:03 AM
Post
#4
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
I don't understand. If you're redirecting Domain A and Domain B to different pages at Domain C, then can't you check the server logs for references to index_A and index_B to see how many people are coming from Domain A and Domain B?
|
Lo-Fi Version | Time is now: 28th March 2024 - 03:53 PM |