how can i change the starting page of my website***

Discussion in 'HTML & Website Design' started by weedguru, Feb 22, 2009.

  1. #1
    I have somehow managed to mess up the direction of the index of my website.
    It seems an old redirect I chucked in via the cpanel, has stuck, even though I have removed it...

    so my page, now when i type in www.mysite.com goes straight to www.mysite/news.php...i have looked at the index.html and the index.php pages but neither of them include any link to the news.php...so what the hell is going on!!!

    also...does this problem mean that my SEO will be affected adversely***

    all help is greatly appreciated.
    cheers
    dan

    ( i am unsure if I am allowed to post the actual link of my site, hence the use of mysite)
     
    weedguru, Feb 22, 2009 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    What's in your htaccess file?
     
    Kerosene, Feb 22, 2009 IP
  3. weedguru

    weedguru Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #3
    I may have deleted that in order to get the phplist program working...now that is working OK...should i create a new htaccess file*** if so, how!
     
    weedguru, Feb 22, 2009 IP
  4. weedguru

    weedguru Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #4
    Is it possible to create a htaccess file*** if so what program do i use*** and is that the reason why my site redirects to the news.php page***
     
    weedguru, Feb 22, 2009 IP
  5. rsrikanth05

    rsrikanth05 Well-Known Member

    Messages:
    1,362
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    190
    #5
    To create a new .htaccess file.
    Do this
    Right click on desktop, go to new, click on notepad file or tect file.
    Rename it to .htaccess
    Then open it, modify it, et all, and upload it..
     
    rsrikanth05, Feb 22, 2009 IP
  6. dmivie

    dmivie Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    So Cool... I did something similar, and this helps correct my click happy mistake.
     
    dmivie, Feb 22, 2009 IP
  7. weedguru

    weedguru Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #7
    modify it how though!...what do I put in the notepad window***
     
    weedguru, Feb 22, 2009 IP
  8. MudiW

    MudiW Banned

    Messages:
    843
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #8
    What does your script says, to create a new .htaccess?
    Or in the .zip, or folder, do they got a .htaccess file? If yes, then upload it.

    To create a . htaccess just write the code in notepad, upload it, should be something.txt then you just rename it to . htaccess and should work.
     
    MudiW, Feb 22, 2009 IP
  9. rsrikanth05

    rsrikanth05 Well-Known Member

    Messages:
    1,362
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    190
    #9
    it won't lways work, better to keep one handy....

    So, here is a nice way to get a .htaccess file.
    Save it and then write all the info in the file using notepad.
    If you don't have it yet, download Wordpress or any free php based forum/blog software.
    You'll find one in the root directory.
     
    rsrikanth05, Feb 22, 2009 IP
  10. weedguru

    weedguru Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #10
    There was a .htaccess file, but I deleted it to allow the phplist program to install correctly. It was causing an error message when I ran the fantastico install function for phplist...will it force the same error to return, and break my phplist program, if i reinstall a .htaccess file****
    and is it certain that this is the problem with my weedguru.com site heading straight to news.php****
     
    weedguru, Feb 23, 2009 IP
  11. rebelagent

    rebelagent Well-Known Member

    Messages:
    876
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    165
    #11
    Can you copy and paste what's in your current .htaccess file please? Someone may be able to point out the problem and re-write it for you.
     
    rebelagent, Feb 23, 2009 IP
  12. weedguru

    weedguru Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #12
    I deleted the .htaccess file when I was installing phplist, upon the advice of my host who was trying to help me get the program working. I will search the directory to see if one is there and I am sure in my cpanel, there is an option of creating a .htaccess file. I will take a peek now and if I can find one I will paste it in here.
     
    weedguru, Feb 23, 2009 IP
  13. weedguru

    weedguru Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #13
    Found it!

    its an ascii file.

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^weedguru.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.weedguru.com$
    RewriteRule ^/?$ http://www.weedguru.com/news.php [R=302,L]


    in the public html directory...what do i need to change. I can see the redirect. How do i get it to simply go to a page weedguru.com, which I assume will be the index.html or index.php page in the same public html directory***
     
    weedguru, Feb 23, 2009 IP
  14. rebelagent

    rebelagent Well-Known Member

    Messages:
    876
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    165
    #14
    Well I'd get rid of the last line. That is obviously the redirecting line. If there's a problem after that get rid of all of it. I don't see any use in it.
     
    rebelagent, Feb 26, 2009 IP
  15. zaidis

    zaidis Peon

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Thanks weedguru its work fine.
     
    zaidis, Feb 26, 2009 IP
  16. weedguru

    weedguru Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #16
    Cheers for the help people...I deleted all the text, and now it is directing to weedguru.com. As I wished...
     
    weedguru, Feb 27, 2009 IP