View Single Post
Old 26 Aug 2018, 06:12 AM   #4
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,930
Arrow Redirect to folder which does not contain index.html file

Quote:
Originally Posted by BritTim View Post
Untested, but should work.
Put the bulk of the website in a subfolder. Have a minimalist index.html file in the initial folder which redirects to a main.html file (with the rest of the website) in the subfolder.
The tiny index.html file should never need changing.
I just tested this concept, and can’t imagine any other easy solution. This usually works, depending on the browser. For example, the website URL can point to an index.html file containing:
Code:
<meta http-equiv="refresh" content="0; URL='http://website.domain/files/main.html'" />
You then create a subfolder “files” and place the website contents there. You must not have any index.htm or index.html file in that subfolder. You can then make a password-restricted URL which allows uploading to that subfolder.

Bill
n5bb is offline   Reply With Quote