blog.html does not open with Live Server using Visual Studio Code - html

I'm trying to learn HTML, and I have a problem. When I try open my blog.html with live server I get an error code saying 'Cannot GET /blog.html/'.
I am not sure why, since my index.html page opens fine with live server.
I cannot include pictures, but inside my main folder for the website, I have index.html, blog.html and a folder for images.

Sometimes Live Server doesn't save files to the server.
Try restarting VS Code or editing the file and then saving, and then try again.

Related

How to setup XAMPP so that page navigation works?

I downloaded Xampp to work with my Mern stack website. I want to make mods to code locally before I push code to actual website. How do I go about getting local server to work with already existing code?
For example, my page navigation doesn't work. When I click on about.html from home.html I get 404 error. I think my express.js file might need to be fixed. The .createserver() function is creating the actual web server with private key and cert.
I just want everything on the web server to work locally so I cant test my code.

Tomcat Server wont load the Webpage

Im trying to deploy my WebApplication on a TomCat 9.0.11.
Now everything went good so far, the artifact was deployed into the ROOT directory, but the page just wont load, and doesnt shows up my index.html? Does anybody see the error here? If i forgot something please tell me so i can add the missing stuff.
EDIT: I want to run the server on Windows first, later on Debian. The website should also be accesibile trough example.com not f.e. example.com/app (or for Windows localhost not localhost/app)
TomcatConfiguration1
TomcatConfiguration2
Artifacts
ServerLog
TomcatServer after deployment
Trying to open the page
Greets
Lukas
i think project should be inside the webapp folder not inside root .Please attach log which can show us the context loading .
Or you can refer to this link:
Deploying just HTML, CSS webpage to Tomcat

styles.css resource not loading when on the server, works locally

I'm new to creating webpages, so perhaps this is really easy and I just can't see it. I have a HTML/CSS template that I am modifying for a new site. When I check the index.html file locally (in Dreamweaver or in browsers) it appears correct. When I uploaded them to the server then the website does not load the images and it appears that the styles.css file is not loading correctly. I have attached a few screenshots to get the ball rolling. As always thanks for your assistance.
Desired Output:
Current Output:
This is likely (later confirmed by asker in comment) a file and directory access right problem.
This can be verified by checking the access logs of the http server.
The solution is to update the ownership and permissions of any problem files so that the http server has rights to them. In this case, it is probably the easiest to examine the permissions of the index.html file and related folders and apply the same permission to the problematic files/folders.

HTML and HTAccess

I have been struggling with this all morning and I have not had much luck.
I am trying to get the following stackoverflow post to work: How to remove .html from URL
Here is my file directory with the htaccess file:
Here is my code that works fine using .html
So I went into sublime text and posted the same code into a .htaccess file as shown here (also in my directory first pic):
I then changed my links and removed .html
But I get an error
If anyone could please tell me what I'm doing wrong I would be grateful! Been bashing my head on this all morning
.htaccess is a file used to control access for Apache web servers. It won't affect anything unless you're running and accessing an Apache server. From your screenshots I can see that you're directly opening a file from your hard drive.
Your browser is saying File not found because you're trying to access a non-existent file. The address bar in your browser should say this:
file:///Users/mikegeng/Documents/GitHub/MichaelGeng.github.io/index.html
.htaccess is used by Apache Webserver. You must install and configure an Apache Webserver and access your site through http://localhost for example.
Currently your .htaccess is completely ignored until your site is served by Apache.

Page Formatting Lost When Using GiHub Pages

When I compile my jekyll site and test locally using "jekyll serve" all is fine. But when github compiles it and host it my site looses all formatting. What should I do to prevent this or trobuleshoot this ?
Locally Hosted (Jekyll Serve) - Good
**GiHub Hosted (Jekyll) - Lost Formatting, Moved to Left **
Looks like the file is at https://sachin-gupta.github.io/css/main.css
/assets/main.scss does not exist, so what source file would be generating https://sachin-gupta.github.io/assets/main.css? Have you committed everything?