GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   What do I got to do? (https://gfy.com/showthread.php?t=43755)

Unchilled 12-09-2001 02:58 PM

What do I got to do?
 
What do I gotta do to make index.shtml automatically popup in a browser in a given directory in the same way index.html would?

Thanks.

Amputate Your Head 12-09-2001 03:00 PM

Add the .shtml extension to your httpd.conf file (if running Apache) either before the other 2 extensions, or after them and then get rid of any other index.*** files in the root.

Then format c:

------------------

****<A HREF="http://www.xanobyte.com" TARGET=_blank> http://www.xanobyte.com/assets/btn-xe.jpg
PRE-MADE & CUSTOM SITES</A>

Amputate Your Head 12-09-2001 03:01 PM

Whoops.... you said ANY directory... okay... same thing... add the extension to the httpd.conf file, and make sure your .shtml extensioned index file is the only index in the specified directory.

Then format c:

RK 12-09-2001 03:05 PM

Create an .htaccess file in the directory and put the following in it:

DirectoryIndex index.shtml
AddType text/html .shtml
AddHandler server-parsed .shtml

If it does not work then you probably need a properly configured server from EnergyHosting http://bbs.gofuckyourself.net/board/smile.gif

------------------
Create Your Own Hosting Plan!
Pay-As-You-Go Hosting FREE Trial!
Limited Time Specials
EnergyHosting - Energizing your business

Unchilled 12-09-2001 03:05 PM

Gotcha,

Thanks Amp.

Unchilled 12-09-2001 03:07 PM

RK,

No shit, I'm always bugging my host to change something that isn't configured right.

Amputate Your Head 12-09-2001 03:09 PM

It may already be set up for those extensions... if you upload one with an .shtml extension or even just rename one to .shtml, you can test it quick and see if it'll work... if not... then the begging process begins. http://bbs.gofuckyourself.net/board/wink.gif

Then format c:

Amputate Your Head 12-09-2001 03:17 PM

Most ARE set up to handle server side includes.... unless it's a freehost... I don't really know if they allow it or not. Maybe oscar or somebody can enlighten us with some o' that good knowledge. I'm sure it couldn't hurt to ask. But either way...

format c:

Wilber 12-09-2001 04:28 PM

You can avoid parsing *.shtml with AddHandler and just config
for XBitHack. This saves from having to add the extra suffix
to pages w/includes. It's also httpd.conf or .htaccess configurable.

httpd.conf
Options +Includes
XBitHack on

.htaccess
AllowOverride Options
Options +Includes
XBitHack on

If your the paranoid type...

httpd.conf
Options +IncludesNOExec
XBitHack on

.htaccess
AllowOverride Options
Options +IncludesNOExec
XBitHack on

edited out 1 too many options

[This message has been edited by Wilber (edited 12-09-2001).]

RK 12-09-2001 04:52 PM

Quote:

Originally posted by Wilber:
.htaccess
AllowOverride Options
Options +Includes
XBitHack on

.htaccess
AllowOverride Options
Options +IncludesNOExec
XBitHack on
Have you ever used the above? It seems incorrect.

------------------
Create Your Own Hosting Plan!
Pay-As-You-Go Hosting FREE Trial!
Limited Time Specials
EnergyHosting - Energizing your business

[This message has been edited by RK (edited 12-09-2001).]


All times are GMT -7. The time now is 05:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123