PDA

View Full Version : A little something for the site


TokenCracker
12-28-2000, 03:22 PM
I noticed that whenever thehypertribe.com is visited it seems like the (default) index.html file is only there to redirect you to index.shtml

I have had lots of experience with mime settings and using htaccess files so I will offer two solutions so visitors will not be fowarded to index.shtml

Firstly, you can simply put this (and only this):

DirectoryIndex index.shtml 404.html
<Files ~ "^\.ht">
Order deny,allow
Deny from all
</Files>

into a text file, name it htaccess, upload it to your host and rename to .htaccess (windows will not see .htaccess as a filename so you must leave out the period and rename it after uploading to your webhost, more often than not, an .htaccess file wont be viewable in the ftp window, or in your host's file manager) index.shtml is where you put the name of the page you need to load when the site is visited, 404.html is where the visitor will be directed if index.shtml wont work, you could add another to the list for if 404.html wont work but I doubt you'll ever need more than these two. the file extention can be anything you need, of course. This is how sites with .php pages direct visitors.

Or, if you want all .html pages in the base web directory parsed for SSI calls then place this (and only this) into the .htaccess file instead of the above:

AddType text/x-server-parsed-html .html

then upload and enjoy. Just trying to help. This may be more than enough instruction than you need but this is how I write instructions, anyways, you can never elaborate too much.

Koliedrus
12-28-2000, 04:37 PM
Aha! See there? A valuable Lesson that should not be lost it the mix.

I think I learned my Lesson.

------------------
Character is like a fence - it cannot be strengthened by whitewash.

TokenCracker
12-28-2000, 05:45 PM
if your talking about how that message would have gotten less attention at the spf webmaster forum than here, i agree.

Strider
12-28-2000, 09:50 PM
Actually...I could just add index.shtml to the apache config file and just delete index.html...I've just been too damned lazy or disinterested to do so. http://www.thehypertribe.net/ubb/smile.gif But, .htaccess works just as easily and can be done by the site admins (RogueWarrior and/or Bumox).

[This message has been edited by Strider (edited 12-28-2000).]

Strider
12-29-2000, 07:08 AM
It was never "broke".