Domain name redirection script

Discussion in 'Programming' started by Top Web Names, Apr 7, 2013.

  1. #1
    Hi. I have many domain names. I need to redirect the traffic from each one to a page on a different website for each domain name. I want to be able to simply add each domain name, and its corresponding destination/URL, into the program. Then when someone goes to one of my domain names, they will be taken to the destination URL.

    Does anybody know of a server script that will do this?

    Thanks!
     
    Top Web Names, Apr 7, 2013 IP
  2. Top Web Names

    Top Web Names Greenhorn

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #2
    Thanks, but this is for doing it manually, one domain name at a time. I'm looking for a script that will do this for MANY domain names by simply entering the domain name and the destination URL.
     
    Top Web Names, Apr 12, 2013 IP
  3. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #3
    Which control panel are your sites on. If not hosted, which domain provider?
     
    ThePHPMaster, Apr 13, 2013 IP
  4. Top Web Names

    Top Web Names Greenhorn

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #4
    Hi. They're on HostGator Linux cPanel, but I can move them to whatever type of account with any hosting service where I can do this.

    Why does the domain provider matter?
     
    Top Web Names, Apr 13, 2013 IP
  5. dawngarden

    dawngarden Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    Check if they have an API to change domain record / redirection. Else try using a third party domain service to achieve this.
    If you are good in programming, create an index.php for all the domains which will fetch your destinations from a database table and redirect accordingly.
     
    dawngarden, Apr 13, 2013 IP
  6. Top Web Names

    Top Web Names Greenhorn

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #6
    Yes, I know that I can "redirect 1 do main to other one with domain registrar", but that's very time consuming and one at a time. I want to be able to set them up automatically by simply entering my domain name in one box, and the destination in another box, and clicking "Ok".
     
    Top Web Names, Apr 13, 2013 IP
  7. Top Web Names

    Top Web Names Greenhorn

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #7
    Thanks, but I've been using 2 different domain name/URL Redirection services for many years, but I want/need to have my own service.

    I'm definitely not a programmer, and yes, what you suggest is what I'm looking for, a server side program that will "create an index.php for all the domains which will fetch (my) destinations from a database table and redirect accordingly", so that I don't have to pay a programmer a lot to code an application for me.
     
    Top Web Names, Apr 13, 2013 IP
  8. kingofdollars

    kingofdollars Well-Known Member

    Messages:
    97
    Likes Received:
    12
    Best Answers:
    1
    Trophy Points:
    110
    #8
    What you need is a script on the server that will edit the content inside index.php
    then you may need a script as a client to connect to your server and change them all at will

    I think you have to hire a programmer at the end
     
    kingofdollars, Apr 13, 2013 IP
  9. Code Developer

    Code Developer Active Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    58
    #9
    You can't get this type of script on web,it needs to custom made.Its quite simple you can do with php & MySQL.Edit the URL from back-end & it will be run randomly on front-end.

    Good Luck!
     
    Code Developer, Apr 17, 2013 IP