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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -