.htaccess of domain to folder

Discussion in 'Site & Server Administration' started by littleking, Sep 20, 2006.

  1. #1
    Hey folks,

    A newbie question. I want to redirect domain.com to domain.com/folder/

    Can anyone tell me the code to place in my .htaccess?

    Also, there is a bunch of existing codes within my .htaccess. So do I just stick the codes at the end of the existing codes?

    Thanks
     
    littleking, Sep 20, 2006 IP
  2. fakhruddin

    fakhruddin Peon

    Messages:
    193
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfiLE
    Code (markup):
    eNJOY
     
    fakhruddin, Sep 21, 2006 IP
  3. littleking

    littleking Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks dude
     
    littleking, Sep 21, 2006 IP