Change Your Website’s Index File using the .htaccess file

Font size: Decrease font Enlarge font

How To: Change Your Website’s Index File

a simple trick using the .htaccess file

A simple tutorial which only involves editing one little file. Useful for those of us who have mime-typed extensions or who are creating lots of test design files and want an easy way to make the design they like best their default file.

  • Create a file called .htaccess in the /public_html/ folder if you don’t have it. I think one should be there already when you get your site so if it isn’t you should create it anyway!

  • In the file write the following: CODE
    DirectoryIndex newindex.file
  • Replace newindex.file with the file you want your index page to be.
  • Open your website and if all has worked well, you should have your customized index page.

40 Responses to “Change Your Website’s Index File using the .htaccess file”

  1. 1
    shop online Says:

    There are several advantages to shopping online, the first one being the ability to shop at a time that is convenient to you, not just when the shops are open. The second advantage of shopping online is that goods are often cheaper as the seller does not have the costs of running a shop and having to pay wages to salespeople, insurance and all of the other running costs of a real world business.

  2. 2
    Eric Boggio Says:

    This is a simple tip for younger drivers, especially under 25′s. Find an older person and put them as a second driver on your insurance. This works best if you can find a female in her 40′s or 50′s. Why is it cheaper?

  3. 3
    Andrew A. Sailer Says:

    I found your site via google thanks for the post. I will save it for future reference. Thanks Etf Fund

  4. 4
    MySpaceGirl Says:

    sexy blog, that made my underwear soaked.

  5. 5
    Liza Mirmow Says:

    I truly enjoyed reading your blog. It was well authored and simple to undertand. Unlike additional blogs I have read. I also found it very interesting. In fact after reading, I had to go show the spouse and she ejoyed it as well!

  6. 6
    Free Web Hosting For Blogs Says:

    Do you want a better host for your blog, because it takes too long to open?

  7. 7
    Lara Davidson Says:

    been following your blog for 3 days now and i should say i am starting to like your post. and now how do i subscribe to your blog?

  8. 8
    cures for tinnitus Says:

    hi. I got word of this important important blog page and also I really need to say that this excellent is a outstanding article. I am truly thankful to find this important knowledge.

  9. 9
    taking online surveys Says:

    If you enjoyed this site you will probably like this site too: http://www.winfreegiftcardsonline.com . It is a great website for winning gift vouchers on the internet.

  10. 10
    Milo Vojtko Says:

    i agree on this, keep it up.

  11. 11
    Andrew A. Sailer Says:

    Check out this one: http://cpa.ly/jd2 I use this now for a half year and I am verrz pleased with it.

  12. 12
    how magicaly making gold Says:

    This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.

  13. 13
    Ryan Martin Says:

    It is going very nice and also improving very nicely, Thanks for sharing it

  14. 14
    Graphic Forums Says:

    Very nice post. Thanks.

  15. 15
    0x8004ff07 Says:

    I installed some software to desktop and mucked it all up and had icons all over the desk top, so created new folder to desktop and draged them into this new folder, but some of my other shortcuts got mixed into this, tried to restore them back to desktop but now cannot find them in any folders and this message come up when try to open the icon (the item ‘letter to XXXX.xml’ that this shortcut refers to has been changed or moved, so this short cut no longer works. do you want to delete it) when it was written it was saved just to the desktop (i think!!!-my partner wrote and it i mucked it up!!) is it automatically saved else where as well, but we just don’t know where to find it?? tried searching but nothing came up, please i really need to find it.

  16. 16
    Liquid Web Says:

    Is there any way to allow people to use sub domains from server X on server Y?

  17. 17
    sonyericsson blog Says:

    yea nice Work

  18. 18
    pc repair york Says:

    There is a domain user that has several network drives, one of which is F:. Each time she puts in a USB device that mapes a drive ( eg, camera, memory stick, external hdd, etc ), it wont map to any drive letter but F:. This causes either: …

  19. 19
    John Hackerstome Says:

    Wonderful web-site, exactly where did you discovered this info in this article? I am glad I found it. i am going to be checking out back soon to check what other content you’ll be able to have.

  20. 20
    redflagdeals windows Says:

    just in case thought to share…..Ontario is being hit with a new law – LEGISLATIONIf you operate any power-driven vessel – even a Personal Water Craft (PWC) – you’ll be required by law to obtain a Pleasure Craft Operator Card. “You may choose to take a full course from BoaterExam.com online and here is $10 “Friends and Family Discount Code – BKCA9E

  21. 21
    best ways to get my wife back Says:

    Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

  22. 22
    Nga Henricks Says:

    Very worthwhile post. Your web pages is swiftly starting to be among my top picks.

  23. 23
    farmville strategy for Says:

    Dear admin, thnx for sharing this blog post. I found it wonderful. Best regards, Victoria…

  24. 24
    fix slow computer Says:

    I am using Windows 7 Professional connected to a domain on a 2003Server. Everything is working fine except the printers. The Win 7 Pc can find the shared network printers fine, but when I try to connect it refuses to use the 64-bit drivers included with Win 7. It does search Windows Update but again with no success. I tried installing a local copy of the printer to load the drivers, but even after this I get an error meddage saying that “can’t connect to printer” with an error code. I found a solution with an HP Laserjet by installing a 64-bit driver on the server under the additional drivers tab. However I have other printers (e.g. Epson LQ-590) where there is no downloadable driver – it is an inbox driver in Windows 7. Does anyone know how to get round this problem and install the printers?

  25. 25
    spy shot Says:

    For many moons now, your humble Autoblog crew has been following the new Saab 9-5 around the globe. Not intentionally mind you, but it seems that Saab has been dragging their 9-5 show car out to every show we’ve covered since before Obama was elected. Which is many, many shows (turns out it’s been since Frankfurt). And while we’re big boosters of the new 9-5, something’s always been… lacking.

  26. 26
    Al Antony Says:

    Mercy Kravitz

  27. 27
    Legalsounds Says:

    Wow!, this was a top quality post. In theory I’d like to write like this too – taking time and real effort to make a good article… but what can I say… I procrastinate a lot and never seem to get something done

  28. 28
    floppy diskette seek failure Says:

    Hi. Let me start off by saying I am a technophobe so if you can help, please answer in no techie language (make it stupid proof so I can undersand it!) Gone to switch on my PC this morning, gone in to the normal family user account (which is an administrator account) and I get the black screen. I tried signing in through the Administrator account and my son’s account (which has administrator rights) and I get the same. Signed in through anon administrator account and the desk top pops up fine. Basically the problem seems to be with profiles that have administrator rights. I cant make adminsrator changes through non adminstrator accounts (I had thought about deletin and re-adding the effected accounts) Any ideas how to resolve this? (PS my son and daughter are both now on Macs and are loving the fact that I am having a problem with Windows!!) Many thanks

  29. 29
    insanity dvd Says:

    Cardio exercise sessions with a sound workout program plus a great nutrition program could be the finest method to drop fat. Keep up the excellent work.

  30. 30
    Download Full Movies Says:

    Wonderful web-site, where did you observed this data in this article? I am glad I found it. i will be checking out back soon to check what other content you possibly can have.

  31. 31
    get rid of yeast infections fast Says:

    Wow! Amazing.

  32. 32
    Krista Rehnert Says:

    When I recently discovered your site and started following along, I was thinking I’d post my 1st comment. I don’t know just what to say only that I really liked reading through. Nice writings. I will keep on visiting this internet site much more regularly.

  33. 33
    stubborn body fat Says:

    Thank you very much.

  34. 34
    Ina Essex Says:

    Very easily, the article is really the greatest on this precious topic. I fit in with your decisions and will thirstily look forward to read your next updates. Just saying tnx is not going to just be adequate, to the brilliant lucidity as part of your writing. I’ll immediately grab your feeds to remain abreast of any updates. Genuine operate and a lot success as part of your organization dealings! Greatest regards.

  35. 35
    Get Full Movie Downloads Here Says:

    Terrific post. Thanks.

  36. 36
    full movie downloads now Says:

    It sounds like you will be generating difficulties yourself by searching for to solve this trouble instead of looking at why their is usually a issue inside the 1st place. thanks !!! incredibly quite helpful post!

  37. 37
    Amazing Diet To Lose Pounds Says:

    I am really happy that I have found this blog. Bookmaking it!

  38. 38
    Tajuana Leischner Says:

    Fantastic post. I wish more folks had straightforward and ponit blank stuff like your own. Thanks :)

  39. 39
    lose stubborn pounds Says:

    Wow! really nice article. Keep up the good work.

  40. 40
    Lurlene Guillan Says:

    What I do not comprehend is how youre not even more well-liked than you might be now. Youre just so smart. You know so much about this matter, got me to consider it from so many different sides. Its like folks arent interested unless it has something to do with Madonna! Your stuffs good. Keep it up!

Leave a Reply

Powered by WP Hashcash