1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Forward multiple domains using 301 permanent redirect and capturing referrer

Discussion in 'Apache' started by clasione, Sep 25, 2006.

  1. #1
    Task: to forward multiple domains using 301 permanent redirect and capturing referrers.

    OK, here is the situation. I have about 100 domain names that need to be forwarded using the 301 permanent redirect.

    I do not want to create 100 new hosting accounts on my dedicated machine only to edit the .htaccess file for the 301.

    What I want to do is somehow create either one hosting account or one pair of name servers to carry out this task.

    Example;

    All 100 domain names
    are set to ns3.forward.com and ns4.forward.com - any requests to these name servers get set to one hosting account with a 301 in its .htaccess file and records referrers in it's awstats files.

    Can this be done?
     
    clasione, Sep 25, 2006 IP
  2. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #2
    You could setup a single hosting account with 100 domain pointers and then have them all point to the same directory which has a 301 .htaccess redirect to the main domain. from the main domain then, you could capture any traffic by using $_SERVER['http_referer'] I think it is, you'll have to look it up to be exact.
     
    fsmedia, Sep 25, 2006 IP
  3. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I agree with fsmedia. You could even use AWStats to find the referrers.

    Jean-Luc
     
    Jean-Luc, Sep 26, 2006 IP