+ Reply to Thread
Results 1 to 3 of 3

Thread: Redirect homepage (easy???)
      
   

  1. #1
    cosmiclove is offline Sergeant Major
    Join Date
    Oct 2007
    Posts
    90

    Default Redirect homepage (easy???)

    Hi all,

    How to redirect a homepage to another page within the same site? I followed carefully the tutorial on Cpanel about REDIRECTS and it looks quite easy. However, i run into problems when i try to do the same. I would like to redirect my home page "mywebsite.com" to another page within the same site "website.com/anotherpage.html" .

    I get this error message "REDIRECT LOOP...etc" when I try to access mywebsite.com. But when in Cpanel, I type in "mywebsite.com/index.html", it redirects me to the new webpage I want. My fear is that no visitor will actually bother to type /index.html after "mywebsite.com". and therefore, they will get this error message. I simply want them to be redirect to the other page just by typing mywebsite.com. I hope my explanations are not confusing you too much. Thanks very much for your help.

    P.S. I know I can simply change the new page into an index.html and delete the old one. But I don't want to do that as the change/redirect is only temporary. I simply want my visitors to be redirected to this other page when they type my usual domain name. Thanks much

    herman

  2. #2
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Redirect homepage (easy???)

    You cant do it like that.. just rename your other page index and publish.. why make it hard?

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  3. #3
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Redirect homepage (easy???)

    You will need edit your htaccess file (either through the file manager in cpanel, or via ftp).

    Open the .htaccess file inside your public_html folder and add this code to it and change the red text to the actual page name:

    Code:
    DirectoryIndex anotherpage.html
    Note though, if you ask for support elsewhere on the forum in regards to your homepage, people are not going to know you set your default homepage be something other then "index". You are going to get a lot of "well your problem is you need an index page", or something of the sort. For that reason it really isn't recommended you make a change like this, its technically a very simple change to make, but changes something that is very fundamental to general website protocol.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49