HostOnNet.com Forum Index HostOnNet.com
Private Label Reseller Plan
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I change the index listing on a Linux server?

 
Post new topic   Reply to topic    HostOnNet.com Forum Index -> FAQ
View previous topic :: View next topic  
Author Message
melbin
FlashWebHost Member


Joined: 19 Feb 2007
Posts: 18
Location: India

PostPosted: Thu Mar 01, 2007 11:06 am    Post subject: How can I change the index listing on a Linux server? Reply with quote

You can change the initial page that is sent to client requests when a directory is accessed by placing the following line into your .htaccess file:

DirectoryIndex filename

Replace "filename" with the actual file you wish displayed when someone visits the directory where your .htaccess file exists. By default, the webserver will display a file named "index.html". If that does not exist, then it displays "index.htm". If that does not exist, then it displays "hostonnet.html" Finally, if that does not exist either it displays "index.cgi". If there is not index.cgi file either it lists all of the files in the current directory.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    HostOnNet.com Forum Index -> FAQ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com

For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!