Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Reply to this topicStart new topic
> How To: Change Your Website's Index File, a simple trick using .htaccess
electriic ink
post Aug 2 2005, 04:57 PM
Post #1


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,205
Joined: 11-February 05
From: Heaven
Member No.: 3,709



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.
  1. 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!
  2. In the file write the following:

    CODE
    DirectoryIndex best_design.weirdext

  3. Replace best_design.weirdext with the file you want your index page to be.
  4. Open your website and if all has worked well, you should have your customized index page.

All agreed it's a lot simpler than the mouseover tutorial a did tongue.gif. Any questions/comments regarding this tutorial smile.gif
Go to the top of the page
 
+Quote Post
s2city
post Aug 2 2005, 09:48 PM
Post #2


Premium Member
********

Group: Members
Posts: 155
Joined: 9-October 04
Member No.: 1,586



Cool. I didn't know you could do that... I thought it was just the way it was... index.html forever and for always. lol! Thanks for the tutorial, I think I'll use it since index.html lacks a sort of beauty. tongue.gif
Go to the top of the page
 
+Quote Post
JimiHex
post Aug 2 2005, 10:05 PM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 21
Joined: 2-August 05
Member No.: 10,190



where did you find this? smile.gif
do you have some more tutorials like this one?

thank you biggrin.gif
Go to the top of the page
 
+Quote Post
Adamrosso
post Aug 8 2005, 09:23 AM
Post #4


Advanced Member
*******

Group: Members
Posts: 128
Joined: 6-August 05
Member No.: 10,402



Lol index.adamrules =D. Thanks for this tutorial. Me too never knew you could do this. anywho thanks for posting it =D
Go to the top of the page
 
+Quote Post
delivi
post Aug 14 2006, 08:11 PM
Post #5


Trap Grand Marshal Member
***********

Group: [HOSTED]
Posts: 1,300
Joined: 11-January 06
From: Chennai, India
Member No.: 16,932



Hey dude that was really great of you by sharing this wonderful Tip. This will be really very useful to all of us.
Go to the top of the page
 
+Quote Post
electron
post Aug 18 2006, 03:25 AM
Post #6


Premium Member
********

Group: Members
Posts: 162
Joined: 10-May 06
Member No.: 23,375



Hey thats a good one.

If you could help me out on one thing in .htaccess .
Do you know what does IgnoreIndex means.
I read it somewhere and I think so it could be used for this as well.

If you do let me know.
Thanks and have a good day
Go to the top of the page
 
+Quote Post
tuddy
post Aug 18 2006, 05:14 AM
Post #7


Privileged Member
*********

Group: Members
Posts: 570
Joined: 5-July 05
From: Ballarat
Member No.: 9,042



Although if you go playing around more you can seriously impair visitors access to your site. I suggest you create a backup of the one you already have (if any), then create a new one, then slowly intergate the old one back into the new one after research of each part.
Go to the top of the page
 
+Quote Post
Dooga
post Aug 18 2006, 12:22 PM
Post #8


Moderator
Group Icon

Group: [MODERATOR]
Posts: 1,327
Joined: 26-December 04
From: Canada
Member No.: 2,940



Hey thanks! I didnt know you could actually do that...
Go to the top of the page
 
+Quote Post
HMN
post Oct 23 2006, 03:58 PM
Post #9


Newbie [Level 3]
***

Group: Members
Posts: 44
Joined: 5-October 06
Member No.: 31,124



lol even the mods didnt know about this lol
Go to the top of the page
 
+Quote Post
jlhaslip