Results 1 to 6 of 6
  1. #1

    Default Want to default to index.htm not index.php

    Firstly I am totally new to php so excuse my ignorance!

    When I try to edit my website using Contribute it opens the inde.php site instead of index.htm - how can i change this?

    Cheers

    Darren

  2. #2
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Hi Darren !

    Welcome to the forums

    If you need to overwrite your webserver settings for your default home page, you can use use your .htaccess file located within your webspace..by simply using the DirectoryIndex option. Edit the .htaccess file & input the following text within it..
    DirectoryIndex index.htm
    This would set your default page to index.htm

    We are glad you have chosen to be a part of our community and we hope you enjoy your stay.

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  3. #3
    Join Date
    Aug 2007
    Posts
    186

    Default

    Hi Darren,

    You can change the default page for your website to index.htm by adding the following code in .htaccess file of your domain. The code is as follows.
    ========
    DirectoryIndex index.htm index.php
    ========

    Due to this code, your website when called through browser will pick up the page index.htm first as the default page for your website.
    Regards,
    Victor,
    Support Team.

  4. #4
    Join Date
    Nov 2008
    Posts
    13

    Default confused.

    will this then take away /index.html after the .co.uk <-- and for any other pages such as /contact.html etc ..

  5. #5
    Join Date
    Jan 2007
    Location
    Amersham
    Posts
    511

    Default Yes and No

    will this then take away /index.html after the .co.uk
    ...Yes ... and...

    <-- and for any other pages such as /contact.html etc ..
    ...No
    David Allen - www.serina.co.uk

  6. #6
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Quote Originally Posted by DavidAllen View Post
    ...Yes ... and...

    ...No
    Simple and to the point. I like it!
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

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
  •