Is there any solution for domain name being redirect to index.php?

Discussion in 'HTML & Website Design' started by Snobama, Oct 21, 2008.

  1. #1
    I'd just discovered that my web site had redirect from my home page from eg,www.yourdomainname.com ( My original domain name ) to www.yourdomainname.com/index.php which is consider illegal to major search engine !

    When I seek the explanation from my web hosting company,they told me it's not their job as it's a code issue and I need to engage web developer to fix it !

    May I know is it true ? What should I do in order to put my home page to my original domain name with .com instead of redirect it to .com/index.php ?

    Thank you.
     
    Snobama, Oct 21, 2008 IP
  2. darren_webb

    darren_webb Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried just uploading your index file straight to the root

    ie...Name your file index and then upload direct to www yourdomain com

    Is this a help ?
     
    darren_webb, Oct 21, 2008 IP
  3. moonshine

    moonshine Peon

    Messages:
    85
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Im guessing the code is NOT already on your root file so... have you checked your .htaccess file?
     
    moonshine, Oct 21, 2008 IP
  4. Snobama

    Snobama Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    May I know what is root file ? How to get it done ?
     
    Snobama, Oct 21, 2008 IP
  5. Artimmi

    Artimmi Active Member

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    68
    #5
    First, when you visit www.website.com server automatically redirects you to www.website.com/index.html
    It can be also index.php, index.asp etc extension doesn't matter (if it's supported on server to display as a web-page).
    So, there is no problem. To manage index.php file just go to the root directory (first directory on your ftp, like disc C: on your PC for files), usually it's folder named public_html.
     
    Artimmi, Oct 21, 2008 IP
  6. samartha_561

    samartha_561 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hello artimmi
    when v upload files to the root folder in the server i feel that everything is done.
    is there anything more that v have to do??????????
     
    samartha_561, Oct 21, 2008 IP
  7. Artimmi

    Artimmi Active Member

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    68
    #7
    If you see these files when access your website by url (www.yoursite.com), everything is OK.
    What's the problem?
     
    Artimmi, Oct 21, 2008 IP
  8. snake charmer

    snake charmer Guest

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    in your ftp client e.g. dreamweaver link to / (forward slash) instead of index.html. check all links in your site. also you need to upload a .htaccess file
     
    snake charmer, Oct 22, 2008 IP
  9. Snobama

    Snobama Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hi moonshine,

    What do you mean by the following ? It'll be nice to hear from you for the step-by-step instructions to fix this problem.

    " Im guessing the code is NOT already on your root file so... have you checked your .htaccess file? "
     
    Snobama, Oct 22, 2008 IP
  10. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #10
    the index.php is just a default file. When you enter your domain it automatically goes to your index.php page.

    Sounds like you modified your htaccess file or did a redirect or something at your webhost.

    It shouldn't matter what whether it's html, php, htm, etc. when you type in yourdomain.com it should automatically default to that page. I normally don't modify the htaccess file or set any redirects at my webhost and it'll default to my index page without the html or php extension.
     
    bob25, Oct 22, 2008 IP