diff --git a/css/404.css b/css/404.css new file mode 100644 index 0000000..6bbe63c --- /dev/null +++ b/css/404.css @@ -0,0 +1,5 @@ +h1 { + color: red; + + +} \ No newline at end of file diff --git a/ezweb.py b/ezweb.py index a09d688..0bc65d4 100644 --- a/ezweb.py +++ b/ezweb.py @@ -1,4 +1,4 @@ -port = 8080 +port = 1111 import os import sys @@ -147,8 +147,6 @@ class MyHandler(SimpleHTTPRequestHandler): - self.send_header('Content-type', 'text/html') - self.end_headers() # Merge all the files together procedrealy # todo: make compiler verson of this @@ -175,19 +173,12 @@ class MyHandler(SimpleHTTPRequestHandler): """ print(paths.replace("/","")) - - - self.send_response(404) - self.end_headers() + self.send_response(200) self.send_header('Content-type', 'text/html') self.end_headers() - - - - - content = "" self.wfile.write(content.encode()) - print(content) + self.end_headers() + # Set the server address and port server_address = ('', port) diff --git a/html/404.html b/html/404.html index 194785a..30c9162 100644 --- a/html/404.html +++ b/html/404.html @@ -1,3 +1,6 @@

uh oh

-

This is 404.html for when the page could not be found

\ No newline at end of file +

This is 404.html for when the page could not be found

+

this is an error with finding the location of a file, its probly not easyweb (hopefully)

+
+

make sure the files are in the right place (html is in /html/ css in /css/ etc).

\ No newline at end of file