Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Web Start Page 1

Status
Not open for further replies.

jdegeorge

Programmer
Mar 19, 2002
1,313
US
Hi:

My church advertised a web address as:


It should have been

www.MYCHURCHNAME.com/Raffle.htm

I've seen this done before, where a sub-folder name was given as the link and the intended page still opened.

How do you do this, please? Thanks!


Jim DeGeorge [wavey]
 
On your website, create a folder named Raffle. Copy the file Raffle.htm in that folder and rename it to index.htm.

Depending on how the page is set up, make sure that you leave the original Raffle.htm in case somewhere else on your site there is a link pointing to that file. You may also need to modify any paths in the one that's in Raffle folder.

Here are a couple more possibilities:

The index.htm file mentioned above could just manually refresh the correct file - something like:
Code:
<META HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;10; url=www.MYCHURCHNAME.com/Raffle.htm&quot;>

Or use a redirect or rewrite command/directive on the web server (depending on the server os and capabilities).
 
Smah

So, a file named &quot;index.htm&quot; is what the browser expects if only the folder name is given in the address. How engenious of Mr. Gates! :)

Sounds like you're suggesting that &quot;index.htm&quot; be like a redirect page to &quot;raffle.htm&quot;, and then all else would work as designed.

Thanks for the quick reply, and enjoy the star!

Jim DeGeorge [wavey]
 
Actually, that's not Mr. Gates's doing. That function is specific to the server software. The server has a list of files (usually called Directory Index files) that it looks to serve by default if no filename is requested. &quot;index.htm&quot; or &quot;index.html&quot; is traditional, but most web servers can be set to other files as well - like &quot;home.htm&quot; or something. For example, by default my Apache server will look for: index.html, index.php, index.php3, index.shtml, index.cgi, index.pl, index.htm, Default.htm, or default.htm in any directory where no filename is specified.

Yes, there are a few options, but personally I would put an index.htm in the Raffle folder that just refreshes (reloads) the correct file. That eliminates the need to worry about modifying any links and is quick and easy.
 
I'll create an &quot;index.htm&quot; file redirecting to &quot;raffle.htm&quot;, and have all that stored in a folder named &quot;raffle&quot;.

If the actual home page in the main folder is called &quot;index.htm&quot;, would that have any effect on my redirect &quot;index.htm&quot; file?

Jim DeGeorge [wavey]
 
No, the 2 'index' files won't conflict with each other as long as they are in different directories. FWIW, make sure you get the spelling & capitalization correct, otherwise it probably won't work - you used a capital R in your first post.
 
I'll confirm the capitalization of the referenced files.

Thank you very much for your help. This will do the trick, literally! :)

Jim DeGeorge [wavey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top