Tutorial
Click on thumbnailed images to enlarge
This is pretty simple. Sometimes it's nice to have your actual index page named "index", but you have a splash or intro page that you want to show up first. You can specify which page you want to come up using your .htaccess file.
Open up notepad and type this:
Obviously, you'll change pagename to the name of the page you want to show up first. Name that file .htaccess and upload it to your webspace in the root directory. Now when you go to your domain, the page you specified should show up. :)
Open up notepad and type this:
DirectoryIndex pagename.html
Obviously, you'll change pagename to the name of the page you want to show up first. Name that file .htaccess and upload it to your webspace in the root directory. Now when you go to your domain, the page you specified should show up. :)
Tutorial Comments
Showing latest 4 of 4 comments

i dont understand the upload it to your webspace in the root directory part....would u kindly explain to me please?
By kimberlychen on Aug 5, 2008 11:29 am
Yeah, just type in .htaccess, and notepad will actually add .txt as the extension. You'll need to take that off. It should actually be called ".htaccess", nothing else, nothing after.
By souperstition on Oct 4, 2007 4:58 pm
O.o this doesn't work, or at least for me. x]
i'm guessing from that fact that you said to use notepad that you're supposed to save .htaaccess as a .txt file.
...?
By ruka on Jul 29, 2007 2:06 am
Or use redirection scripts like these...1. Using javascript<script type="text/javascript">window.location="destination.html";</script>2. Using PHP<?phpheader("Location: destination.php");?>
By birdman on May 9, 2006 5:14 pm
Tutorial Details
Author |
souperstition
![]() |
Submitted on | May 1, 2006 |
Page views | 25,961 |
Favorites | 24 |
Comments | 4 |