The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Redirect permanent / http . . ., How can I add argument(s) here?
Dag
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dag
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 03:53 PM