The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

2 Pages V < 1 2  
Reply to this topicStart new topic
> Link to HTML doc can only offer download, not display
pandy
post Mar 17 2019, 11:52 PM
Post #21


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Even more odd that the presumed text document is offered for download. Why isn't it displayed in the browser as usual?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 17 2019, 11:54 PM
Post #22


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Mar 18 2019, 12:16 AM) *

QUOTE
Weebly seems to require "files/theme/", I'm not sure why.

Sounds like a folder for some kind of themes. unsure.gif But that makes me wonder --why did you put quesera2.html there in the first place? Perhaps you're not supposed to have HTML files in that folder. Try moving it to the web root instead (where the index.html file is)!


Or create a new folder outside the theme folder if you want to keep things together. It should get default permissions and other criteria.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 18 2019, 06:35 AM
Post #23


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Mar 18 2019, 05:52 AM) *

Even more odd that the presumed text document is offered for download. Why isn't it displayed in the browser as usual?

Good point. Maybe because of the conflicting Content type and file extension?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 18 2019, 06:44 AM
Post #24


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



A conflict in the browser, you mean? But all browsers I have does the same.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 18 2019, 10:27 AM
Post #25


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(Christian J @ Mar 18 2019, 12:35 PM) *

QUOTE(pandy @ Mar 18 2019, 05:52 AM) *

Even more odd that the presumed text document is offered for download. Why isn't it displayed in the browser as usual?

Good point. Maybe because of the conflicting Content type and file extension?

The conflict doesn't seem to matter. I created a test HTML page with a text/plain header and .html extensions:

CODE
<?php
header('Content-Type: text/plain');
?>
<!doctype html>
<html>
...

and indeed Firefox did display it as plain text in the browser window.

Could there be something else with the HTTP headers causing trouble? unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Leezinho
post Mar 18 2019, 06:51 PM
Post #26


Newbie
*

Group: Members
Posts: 11
Joined: 21-February 19
Member No.: 26,828



QUOTE
Sounds like a folder for some kind of themes. But that makes me wonder --why did you put quesera2.html there in the first place? Perhaps you're not supposed to have HTML files in that folder. Try moving it to the web root instead (where the index.html file is)!

I'm new to Weebly, and so far, "Themes" is the only place I've seen to put files. I haven't seen mention of anything called a "web root", nor any other options. I don't see folders for me to put things in.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 18 2019, 07:56 PM
Post #27


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(Leezinho @ Mar 19 2019, 12:51 AM) *

I haven't seen mention of anything called a "web root", nor any other options.

The web root is where https://langnhist.weebly.com/index.html is located. It's the highest folder level that's visible to site visitors.

QUOTE
I don't see folders for me to put things in.

You can create them yourself if you want (I don't know how it's done with Weebly, but the instructions should mention it). Here's a good page on how to organize things: https://webtips.dan.info/subdir.html

But first, try moving quesera2.html to the web root folder (so it's URL becomes: https://langnhist.weebly.com/quesera2.html), to see if it shows properly in a browser from there.

This post has been edited by Christian J: Mar 19 2019, 05:23 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 19 2019, 12:50 AM
Post #28


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



I assume you can't use FTP with Weebly? You do everything through a web interface, some kind of online file manager?

There ought to be an icon or other symbol you can click on to go one folder up if you currently are in the themes folder.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

2 Pages V < 1 2
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 11:07 PM