BZZZZ
October 30, 2022, 7:46am
1
When I go to https://gdccdated.glitch.me/ server responds with contents of index.html
file.
How to make static server respond with contents of index.xhtml
file instead?
Deleting index.html
doesn’t help (server responds with directory listing page).
project editor link
1 Like
wh0
November 2, 2022, 6:05am
2
I haven’t seen anything that would give us control over the details of how Glitch serves static sites. If it’s not already working with .xhtml, I think all you can do is post it in the features request category. And possibly start converting your files to plain HTML
1 Like
BZZZZ
November 2, 2022, 7:34am
3
Static server serves XHTML with correct content-type
:
printf 'GET /index.xhtml HTTP/1.0\r\nhost:gdccdated.glitch.me\r\nuser-agent:asdf\r\n\r\n' | nc gdccdated.glitch.me 80 | grep -i content-type
outputs
Content-Type: application/xhtml+xml
I wanted to ask if it’s possible to make /
page not index.html
like index.svg
or index.png
or index.xhtml
.
I use XHTML because it errors when invalid instead of silently doing something weird.
wh0
November 2, 2022, 6:45pm
4
good? then it sounds like there’s no need to convert xhtml to html
same answer as above, we users have no control over how static sites are served, other than by opening feature requests
BZZZZ
November 2, 2022, 7:53pm
5
1 Like
abucky0
November 13, 2022, 4:51am
6
You can either use a node server or have an index.html file redirect to your index.xhtml file.
1 Like
system
Closed
May 12, 2023, 4:52am
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.