How to re-direct from domain to domain/file

Discussion in 'HTML & Website Design' started by chrisj, Jan 31, 2008.

  1. #1
    I'd like visitors to my web site to automatically be taken to the home page when they enter my domian name. For example, when they type in thedomainame.com the will automatically see thedomainame.com/homepage.

    Is this done by using htaccess?

    Can you someone explain this to me? How it works and how to set it up?
    Or how to change domainname.com/folder/index to just domainname.com?


    thanks.
     
    chrisj, Jan 31, 2008 IP
  2. BushMackel

    BushMackel Guest

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should be able to use this in a .htaccess file sans quotes...
    "Redirect 301 / http://domainname.com/homepage

    Let me know if it works for you!
     
    BushMackel, Feb 1, 2008 IP
  3. Xeter_Design

    Xeter_Design Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have a link that you may be interested in. I will alert you now that it is from my forums and this is in no way a plug, i thought that this would genuinely help you. It was posted by a member on my forums.

    Hope this helps you: http://www.xeterdesign.com/forums/f61/php-redirect-explanations-77/

    Kind Regards,
    Nick
    CEO Xeter Design and Development
     
    Xeter_Design, Feb 1, 2008 IP