.htaccess to redirect my folder (/folder) to the homepage?

Discussion in 'HTML & Website Design' started by coogie, Jun 22, 2008.

  1. #1
    Hi there..
    I have put my .htaccess on the server in the main root


    I want it so that when someone goes to www.mydomain.com/folder it actually sends the user to www.mydomain.com

    how can i do this?

    i've tried

    Redirect 301 /folder* http://www.mydomain.com/*

    and

    Redirect 301 /folder http://www.mydomain.com/

    and

    Redirect /folder http://www.mydomain.com/




    none of these work! What am i doing wrong?

    thanks for the help
     
    coogie, Jun 22, 2008 IP
  2. cougarxs

    cougarxs Peon

    Messages:
    662
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    who is the hosting through ?

    i hosted with godaddy years ago and had the same poblems.. i learnt my lesson and moved onto a decent host
     
    cougarxs, Jun 22, 2008 IP