Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Results 1 to 9 of 9

Thread: php domain re-direct question

  1. #1

    php domain re-direct question

    Hello,
    I have question about how to get a specific domain name to point to a specific file. Here's my issue, I have one main domain (www.something.com) and I have three other promotional type domains that need to point to specific files (www.something.com/specific-file.php).

    So like, www.promotionaldomain.com pointing to www.something.com/specific-file.php

    Is this possible using php? It's an IIS server and I don't have access to the admin panel so .htaccess type redirects aren't possible, any ideas?

    thanks!

  2. #2
    yea in www.promotionaldomain.com just put an index.php file that has...
    PHP Code:
    header('Location: http://www.something.com/specific-file.php'); 
    the only problem of doing it this way is that bots and such won't pick it up an "official" redirect so it won't index the page you're redirecting to.
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

  3. #3
    Well, the only thing about that is I have an index.php file already sitting in the root of the home directory, I'd need to retain the homepage as index.php and somehow get the other promotional domains to re-direct to those other pages.

    Is that possible?

  4. #4
    Well if I am seeing this right you want to point the other (promotional) domains to pages on your main (something) domain? Do the other promotional domains have hosting? Can you get to the DNS settings of the promotional domains?
    Web Site Design and Stuff....One day I will get it.

  5. #5
    The promotional domains do not have hosting, but I bought them through godaddy so I do have access to the dns settings.

  6. #6
    If you go into the control panel at godaddy you want to go to the dns settings. then go to domain forwarding.
    You can enter the information there.
    Is the original site located on the godaddy hosting?
    If so godaddy allows more then one site to be hosted on a hosting account.
    You can just create a sub directory and place the entire site there.
    I have 5 sites currently on one godaddy hosting account.
    Web Site Design and Stuff....One day I will get it.

  7. #7
    So I can forward to a specific file with domain forwarding?

  8. #8
    Quote Originally Posted by atarijake View Post
    So I can forward to a specific file with domain forwarding?
    tells you in godaddy
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

  9. #9
    thanks so much!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012