how do u make the index page point to a certain folder to open as home page?

Discussion in 'HTML & Website Design' started by gringo, Mar 19, 2007.

  1. #1
    Hi all

    i have a site and what to make the index page point to file to open in another file

    so the first index page says open www.nameosite.com/folder1/index

    hope this makes sense
     
    gringo, Mar 19, 2007 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    Use a HTACCESS redirect.
     
    Clive, Mar 19, 2007 IP
  3. zodiac

    zodiac Peon

    Messages:
    2,661
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #3
    put this in the index
    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=www.nameosite.com/folder1/index">
    Code (markup):
    index with a .php or .html ;)
     
    zodiac, Mar 19, 2007 IP
  4. mines

    mines Well-Known Member

    Messages:
    1,127
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Htaccess is the best, but a simple php redirect is the easiest (well, the meta refresh is easier but not as good...) if you can use php (if you can't check this page out ...http://www.somacon.com/p145.php)

    Put this at the top of index.php...
    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.somacon.com/");
    exit();
    ?>
     
    mines, Mar 19, 2007 IP
  5. ahelpinghand

    ahelpinghand Guest

    Best Answers:
    0
    #5
    ahelpinghand, Mar 20, 2007 IP
  6. intelrate

    intelrate Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    JavaScript also works fine for that purpose. Take a look at window.open(url) function.
     
    intelrate, Jan 4, 2009 IP
  7. eyoonk

    eyoonk Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    good info

    thank u
     
    eyoonk, Feb 17, 2010 IP