EmailDiscussions.com

EmailDiscussions.com (http://www.emaildiscussions.com/index.php)
-   FastMail Forum (http://www.emaildiscussions.com/forumdisplay.php?f=27)
-   -   Website upload feature 'broken' by index.html (http://www.emaildiscussions.com/showthread.php?t=73902)

ArtMG 25 Aug 2018 09:37 PM

Website upload feature 'broken' by index.html
 
Hi,

Within my Files storage allowance, I have created a Website as a target for one of my domains. This is to host a static website, and that much works fine.

I would like to give my website designer the ability to upload new versions directly, instead of me having to deploy them myself. I thought that the Files & Dir with upload feature would be perfect for this, as I can password protect it, giving only my web designer the key. The first time around this was fine, and they could upload all the html, css and image files, until the index.html. As soon as the folder contains a file called index.html the upload feature stops working, and you see the 'website content' instead.

I can still manipulate the files from my of personal Files area when logged onto my email, but my web designer with his password just sees the index.html contents instead of the file uploading tools. I tried making the 'live' site a subfolder of Uploads folder, but as soon as you browse into the folder containing an index.html file, the upload features disappear and you just see the website as published.

Is there perhaps a URL hack that we can do to 'see past' the index.html website page and get back to the file uploads? Does anyone have experience in delegating the upload capability for minor websites?

Thanks

FredOnline 25 Aug 2018 10:26 PM

Just an idea, but could the index file be initially saved as htm extension instead of html to test?

BritTim 26 Aug 2018 01:11 AM

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.

n5bb 26 Aug 2018 07:12 AM

Redirect to folder which does not contain index.html file
 
Quote:

Originally Posted by BritTim (Post 607509)
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

ArtMG 26 Aug 2018 06:03 PM

Thanks Bill & BritTim,

that sounds like it should work. I'm not sure on the impact of a Meta Refresh URL redirection on SEO or User Experience, but hopefully if I choose a short and sensible name for the folder it should work out reasonably.

I appreciate your support
Cheers
Art


All times are GMT +9. The time now is 10:11 PM.


Copyright EmailDiscussions.com 1998-2022. All Rights Reserved. Privacy Policy