TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

index.html / index.shtml

Page: 1 2 Reply
Oct 26th 2001#19224 Report
Member since: Mar 20th 2001
Posts: 319
Can someone tell me if there is a way to make index.shtml load automatically, rather than index.html?? if your wondering why im asking, or just need to see what i'm talking about, click here Thanks for any help ya have :D
Reply with Quote Reply
Oct 26th 2001#19234 Report
Member since: Mar 18th 2001
Posts: 1690
www.wallus.f2s.com: Aliases: www.wallus.f2s.com. IP(s): 194.106.33.56. Server type: Apache/1.3.19 HTTP/1.0

Since you are apache, im going to guess it's unix. eh...anyway.

what you need to do is ask the webserver administrator to change what file is the default file loaded in httpd.conf.

Yes, only the webserver administrator can do it.

Or you can set up and index.html page with a javascript that automatically forwards the browser to index.shtml with no delay times, but since you are on f2s and it's slow slower than hell, it could take a good day and a half to load.
Reply with Quote Reply
Oct 27th 2001#19267 Report
Member since: Mar 24th 2001
Posts: 3734
Too bad you're not running under IIS 5.0. (That's Microsoft for you haters, heehee). It's as simple as changing the site options to load index.shtml. You can set it to load as many different start pages as you want in the options. Currently, I have most of the sites we host to automatically load either "default.htm or index.htm", but if felt the need to, you could simply change those or even just add-in "index.shtml".
Reply with Quote Reply
Oct 27th 2001#19271 Report
Member since: Mar 18th 2001
Posts: 1690
apache works the exact same way mattboy. The only difference is you get to edit the file with a text editor. It's not a dll file. it's not an ini file.
Reply with Quote Reply
Oct 27th 2001#19301 Report
Member since: Mar 24th 2001
Posts: 3734
It's just too bad you have to actually edit the file. With IIS it's right there in the options.
Reply with Quote Reply
Oct 27th 2001#19303 Report
Member since: Mar 18th 2001
Posts: 796
I always have an .htacces file on f2s, so you can use ssi includes in .html/.htm files.
Reply with Quote Reply
Oct 27th 2001#19306 Report
Member since: Mar 20th 2001
Posts: 319
Good Christian - what is that (not ssi, but .htacces), and how would i go about doing that
Reply with Quote Reply
Oct 28th 2001#19317 Report
Member since: Mar 18th 2001
Posts: 1690
.htaccess is a part of Basic HTTP Authentication. It allows you to simply password protect a directory in your web folder.

It's not as secure as some other methods, but for small, non-mission critical websites, that's ok.

It works in conjunction with a .htpasswd file and a .htgroup file ( this one is optional ) to allow anyone who's name is in the .htpasswd file to enter the directory as long as the correct password is given. It usese md5 to make the password. ( if you don't know what this is, search for md5 in any search engine. google works best. )
Reply with Quote Reply
Oct 28th 2001#19318 Report
Member since: Mar 18th 2001
Posts: 1690
It's just too bad you have to actually edit the file. With IIS it's right there in the options


It's also just too bad that IIS is the most exploitable webserving application on the internet. One day you will realize that there are things that are better than Microsoft. IIS is ****. Plain and simple.

Take it from someone who has used Apache for Unix, Apache for Win32, IIS 4/5 and Netscape Enterprise Server for Novell..
Reply with Quote Reply
Oct 28th 2001#19322 Report
Member since: Jun 30th 2001
Posts: 447
A .htaccess file can do lots more than just HTTP Basic Authentication. In fact it can do exactly what you want, load index.shtml instead of index.html as the default. Create and upload a file called .htaccess to your web site's www root with the following in it:

DirectoryIndex index.shtml
Reply with Quote Reply
Page: 1 2 Back to top
Please login or register above to post in this forum