Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Advice for forwarding visitor based on requested URL

    Hello everyone,

    I am a newish web site builder. I have had some brief experience in making static HTML web sites, and now I am making a large web site based on Joomla.

    But as to my problem. I have a Joomla website hosted on Go Daddy. But the web site is for small artist-run galleries in Australia. So I purchased an Australian domain: www.crawl.net.au . My website in progress is at: crawl.nh-e.info.

    I have set up my Aussie domain to go to my personal site at nh-e.info.

    What I would like to do is to have a piece of HTML in nh-e.info that forwards them to crawl.nh-e.info if they had typed in crawl.net.au

    If anyone has done this before, let me know!

    thanks everyone

    Nicholas

  • #2
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    cant you point both domains to the same IP
    You can not say you know how to do something, until you can teach it to someone else.

  • #3
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    failing that maybe a redirect function
    You can not say you know how to do something, until you can teach it to someone else.

  • #4
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have 2 domains, one that I got with go daddy (with the hosting) and another i got in australia. and they both point to the same url: nh-e.info.

    I just found some HTML code that I thought might work, but doesn't seem to do anything:

    Code:
    <?PHP
    
    switch ($HTTP_HOST) {
    
    case "www.crawl.net.au":
    header("Location: /joomla/index.php");
    break;
    
    default:
    header("Location: index.html");
    
    )
    
    ?>


  •  

    Posting Permissions

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