beta.blog

News

.htaccess – Force text files

by on Jun.14, 2010, under News

If you create a new .htaccess file containing the following code, all files in the current directory will be intepreted as text or html files :

ForceType text/html

Additionally it’s possible to restrict directory listing by using the following command:

Options -Indexes
Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!