Index Page Inside a Folder ??

Discussion in 'Programming' started by movidalatina, Nov 6, 2007.

  1. #1
    I'd appreciate the help. I would like to know
    how can i set up the index page and all subsequent
    pages like this http://mysite.com/smileys/ .
    -not folders, but rather that when i type
    mysite.com in the browser..the address will
    be mysite.com/smileys/ as opposed to the regular index
    page now which is mysite.com(mysite.com/index.php)

    for example if you notice
    the index page redirects to the ......org/hi5.php

    thanks
     
    movidalatina, Nov 6, 2007 IP
  2. garbageman

    garbageman Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, if you're working in php, just use
    header("Location: http://mysite.com/wherever.html");
    javascript is just
    if(parent.location !== "http://mysite.com/wherever")
    { parent.location = "http://mysite.com/wherever"; }
     
    garbageman, Nov 6, 2007 IP
  3. movidalatina

    movidalatina Well-Known Member

    Messages:
    1,268
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Thanks, I'll try that
     
    movidalatina, Nov 6, 2007 IP
  4. bobb1589

    bobb1589 Peon

    Messages:
    289
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i think you want something with mod_rewrite and redirects in the .htaccess
     
    bobb1589, Nov 10, 2007 IP