html - Is it possible to have a website, like a text-based document? -


when view source code of website - text-based document:

view-source:http://example.com/ 

i suppose, asking is: possible have: 'http://example.com/index.txt', , remove the: '/index.txt' (using .htaccess) - website acts text document.

you need create .htaccess file in root directory , set directory index so:

directoryindex index.txt 

.htaccess guide - directoryindex uses

in cases, advise against cannot use form of code or formatting within document. means no hyperlinking, no images, nothing apart plain text.


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -