Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-19-2012, 02:09 PM   PM User | #1
patrickdavis
New Coder

 
Join Date: Aug 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
patrickdavis is an unknown quantity at this point
Help with home page (index.html)

Guys,

i have all of my webpages named ( aboutus.html - garden.html ect...)
is there a way of nameing index.html so that it will still act as the homepage without it being called index?
patrickdavis is offline   Reply With Quote
Old 08-19-2012, 02:20 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,585
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
I assume that your server is Apache and supports custom server settings:
You need to create an .htaccess file with a rule that specifies the file name for index pages:
Code:
DirectoryIndex filename.ext
The file needs to be in the root directory of your site.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:21 PM.


Advertisement
Log in to turn off these ads.